npm install: WARN on dependency

前端 未结 3 697
既然无缘
既然无缘 2020-12-16 10:34

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

相关标签:
3条回答
  • 2020-12-16 11:11

    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.

    0 讨论(0)
  • 2020-12-16 11:24

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

    npm install --silent
    

    npm docs

    0 讨论(0)
  • 2020-12-16 11:31

    npm install --no-optional prevents this warning

    0 讨论(0)
提交回复
热议问题