2017-10-09 188 views
1
npm WARN [email protected] requires a peer of [email protected]^1.9.11 but none is installed. You must install peer dependencies yourself. 
npm WARN [email protected] requires a peer of [email protected]^1.4.0 but none is installed. You must install peer dependencies yourself. 
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself. 
npm WARN [email protected] requires a peer of [email protected]^1.12.6 but none is installed. You must install peer dependencies yourself. 
npm WARN [email protected] requires a peer of [email protected]^1.0.0 || ^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself. 
npm WARN [email protected] requires a peer of [email protected]>=2.0.3-beta <3 but none is installed. You must install peer dependencies yourself. 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents): 
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) 

我在做npm安装时遇到了上面提到的警告。虽然,这些只是警告,并不会影响应用程序。但是,我想知道导致这些警告的是什么。在安装npm时得到警告

I am using npm `version 5.4.2` 
node version is 6.11.4 
webpack 2.1.0-beta.22 

回答

0

首先去年2个警告只是针对谁使用 比Mac和其他的用户。(即使我没能解决这些问题)

现在来其它警告。

您可以降级您的webpack版本或将所有内容升级到最新版本。

它们是互相兼容的,因为我也这样做过。

在我看来,升级所有组件是解决此问题的更好方法。

同时升级它npm-check

+0

如果我们运行NPM检查将是给出什么都需要被更新信息此模块将是有帮助吗? – user8725342

+0

有什么办法可以检查一下吗? – user8725342

+0

是的,但你需要安装'npm-check'模块。上面有一个链接,你可以参考一下 –