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?
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.
By default, npm install will install all modules listed as dependencies in package.
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
.
The flag -s
/ --silent
works great if you want to remove all warnings and errors:
npm install --silent
npm docs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With