Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm install: WARN on dependency

I'm using npm install cmd in my TFS build. I always get the following WARN:

npm WARN optional dep failed, continuing [email protected]

How could I delete this warning?

like image 213
Felix_Billon Avatar asked Dec 29 '14 10:12

Felix_Billon


People also ask

How do I resolve npm deprecated warn?

For deprecated files you should use the "npm i [package]" syntax, in this case you should use: npm i X and it will fetch all necessary packages, including deprecated ones, but which are required for your installation.

Will npm install install all dependencies?

By default, npm install will install all modules listed as dependencies in package.


2 Answers

Are you running on Windows or Linux? If so, fsevents cannot be installed, as it is an OSX-only package.

If you run npm with --loglevel=error, you should no longer see this or any other warnings. As far as I know, there is no way to selectively suppress warnings in npm.

like image 159
Sam Mikes Avatar answered Oct 09 '22 16:10

Sam Mikes


The flag -s / --silent works great if you want to remove all warnings and errors:

npm install --silent 

npm docs

like image 45
Alisson Nunes Avatar answered Oct 09 '22 14:10

Alisson Nunes