I\'m using npm install cmd in my TFS build. I always get the following WARN:
npm WARN optional dep failed, continuing fsevents@0.3.1
How could I
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 good if you want to remove all warnings and errors:
npm install --silent
npm docs
npm install --no-optional prevents this warning