npm install:警告依赖项 [英] npm install: WARN on dependency
本文介绍了npm install:警告依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的TFS版本中使用npm install cmd.我总是收到以下警告:
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
如何删除此警告?
推荐答案
您是在Windows还是Linux上运行?如果是这样,由于它是OSX专用的软件包,因此无法安装fsevents
.
Are you running on Windows or Linux? If so, fsevents
cannot be installed, as it is an OSX-only package.
如果将npm
与--loglevel=error
一起运行,则不应再看到此警告或任何其他警告.据我所知,没有办法选择性地抑制npm
中的警告.
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
.
这篇关于npm install:警告依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文