2017-10-09 187 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'模塊。上面有一個鏈接,你可以參考一下 –