[英]Getting warnings while installing npm
npm WARN extract-text-webpack-plugin@1.0.1 requires a peer of webpack@^1.9.11 but none is installed. You must install peer dependencies yourself.
npm WARN karma-webpack@1.7.0 requires a peer of webpack@^1.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native@0.49.2 requires a peer of react@16.0.0-beta.5 but none is installed. You must install peer dependencies yourself.
npm WARN sass-loader@3.2.0 requires a peer of webpack@^1.12.6 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-middleware@1.12.0 requires a peer of webpack@^1.0.0 || ^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-server@2.0.0-beta requires a peer of webpack@>=2.0.3-beta <3 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
我在進行npm安裝時遇到上述警告。 雖然,這些只是警告,不會影響應用程序。 但是,我想知道導致這些警告的原因。
I am using npm `version 5.4.2`
node version is 6.11.4
webpack 2.1.0-beta.22
首先,最后2條警告僅針對那些使用mac以外的用戶(即使我也無法解決它們)
現在出現其他警告。
您可以降級webpack
版本或將所有內容升級到最新版本。
它們彼此兼容,因為我也做到了。
我認為升級所有組件是解決此問題的更好方法。
該模塊在升級npm-check時將很有幫助
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.