Felix_Billon
Felix_Billon

Reputation: 720

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?

Upvotes: 41

Views: 52068

Answers (3)

Alynva
Alynva

Reputation: 558

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

npm install --silent

npm docs

Upvotes: 16

Angus
Angus

Reputation: 369

npm install --no-optional prevents this warning

Upvotes: 6

Sam Mikes
Sam Mikes

Reputation: 10848

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.

Upvotes: 85

Related Questions