How to clear EPERM : operation not permitted warning while installing gulp - node.js

I'm trying to install gulp in Windows8 by issuing the below command,
C:\Users\acer>npm install gulp -g
C:\Users\acer\AppData\Roaming\npm\gulp-> C:\Users\acer\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.7 (node_modules\gulp\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ gulp#4.0.0
updated 1 package in 63.384s
Although the installation was successful, while executing the gulp I'm receiving the below error.
C:\Users\acer>gulp -v
'gulp' is not recognized as an internal or external command,
operable program or batch file.
Can someone help to overcome this issue?.

You need to add the npm global directory to your PATH variable. You can do this by executing the below command.
set PATH=%PATH%;C:\Users\YOUR_USER_NAME_OR_LOGIN\AppData\Roaming\npm;
After issuing the above command, try executing gulp -v and it will work.
Hope this helps!

Related

Error while trying to install nodemon with Discord.js [duplicate]

This question already has answers here:
I can´t install nodemon globally, "nodemon" not recognized
(15 answers)
Closed 2 years ago.
When I try to install nodemon with npm install -g nodemon it gives me the following error:
'nodemon' is not recognized as an internal or external command,
operable program or batch file.
It isn't a problem, as it had said, it's an optional dependency, so you don't really need it. Please refer to these answers below:
How to solve npm install throwing fsevents warning on non-MAC OS?
How to fix 'Unsupported platform for fsevents#1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.0.14
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.7

Issues when trying to install Socioboard-api NodeJs

I am trying to install sociobaord
from the following URL
https://github.com/socioboard/Socioboard-4.0
I tried installing a part of it i.e https://github.com/socioboard/Socioboard-4.0/tree/master/socioboard-web-php and have succeeded
but
I am unable to install the API part https://github.com/socioboard/Socioboard-4.0/tree/master/socioboard-api
when I am trying to install Socioboard API I am getting following errors
D:\wamp\www\social\user>npm install
npm WARN user#1.0.0 No description
npm WARN user#1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
audited 877396 packages in 46.139s
found 0 vulnerabilities
and
D:\wamp\www\social\library\sequelize-cli> ../node_modules/.bin/sequelize db:migrate
'..' is not recognized as an internal or external command,
operable program or batch file.
After going through the issue with you .. we came to figure that you need to install all the packages in all the folders as per the documentation.
Also, their documentation is missing that to install the app correctly we need to install sequelize-cli, and preferably to install it globally.
once installed .. just remove the full link to the sequelize binary ../node_modules/.bin/sequelize and type sequelize instead

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.7

I'm trying to install Angular using the Angular CLI but I'm getting an error when I try to run this command.
Command
npm install -g #angular/cli
Error:
C:\Users\abc>npm install -g #angular/cli
C:\Users\abc\AppData\Roaming\npm\ng -> C:\Users\abc\AppData\Roaming\npm\node_modules\#angular\cli\bin\ng
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.7 (node_modules\#angular\cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ #angular/cli#7.3.6
updated 1 package in 102.686s
Node Version v10.15.3
This is a warning not an error, and it's because you're on Windows. FSevents only works on Mac so it's not needed on Windows and that's why it's SKIPPING OPTIONAL DEPENDENCY.
And no as of right now there is no way to get rid of that being printed into the console so just ignore it given the fact that it's not doing anything anyways rather it's just being a bit verbose and telling you that it's not being used.
This is because you're running on windows. A lot of apps use that library, but it only works on the Mac, so they use something else for Windows and Linux. That's why it's listed as "optional". You can ignore the warning.

error running quorra: quorra is not recognized

I received an app that uses quorra, so I installed quorra via the instructions on the webpage
λ npm install -g quorra-cli
C:\Users\****\AppData\Roaming\npm\quorra -> C:\Users\****\AppData\Roaming\npm\node_modules\quorra-cli\quorra.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules\quorra-cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ quorra-cli#1.0.0
added 209 packages from 124 contributors in 18.942s
But then when I try to run anything, like
quorra ride
quorra new
quorra -v
I get:
'quorra' is not recognized as an internal or external command,
operable program or batch file.
It seems like it cant find where to run the quorra command, but I installed it so I dont understand what else I am supposed to do I didnt find anything else on the docs.
I even tried adding the quora folder
C:\Users****\AppData\Roaming\npm\node_modules\quorra-cli
into my path variable but no luck
Any help?

npm install -g #angular/cli command does not install angular cli

I am creating a sample angular2 web app. For that i have installed node.js (v 7.1.0)and NPM (v 3.10.9).
and now after opening system command prompt when I execute the command :
NPM install -g #angular/cli
to install angular cli I am getting the following shown results.
After doing ng -v to check the version of cli installed I am not getting the version number.
Is the cli not installed correctly?
or do I need to set any path variable in environment var?
What has to be done here? Please advise.
C:\Users\27727>d:
D:\>cd learn-angular
D:\learn-angular>npm i -g #angular/cli
npm WARN gentlyRm not removing C:\Users\27727\AppData\Roaming\npm\ng.cmd as it w
asn't installed by C:\Users\27727\AppData\Roaming\npm\node_modules\#angular\cli
npm WARN gentlyRm not removing C:\Users\27727\AppData\Roaming\npm\ng as it wasn'
t installed by C:\Users\27727\AppData\Roaming\npm\node_modules\#angular\cli
C:\Users\27727\AppData\Roaming\npm\ng -> C:\Users\27727\AppData\Roaming\npm\node
_modules\#angular\cli\bin\ng
C:\Users\27727\AppData\Roaming\npm
`-- #angular/cli#1.7.0
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.0.0 (node_modules\#a
ngular\cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#
1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}
)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.0.0 (node_modules\#a
ngular\cli\node_modules\webpack-dev-server\node_modules\chokidar\node_modules\fs
events):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#
1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}
)
npm WARN ajv-keywords#3.1.0 requires a peer of ajv#^6.0.0 but none was installed
.
D:\learn-angular>ng -v
'ng' is not recognized as an internal or external command,
operable program or batch file.
D:\learn-angular>
In your system please check this path ( C:\Program Files\nodejs ) is there in environment variables.

Resources