【发布时间】:2017-12-22 09:24:41
【问题描述】:
我尝试使用以下命令将 Webpack 安装到项目的现有目录中:
npm install --save-dev webpack
但是,它返回以下错误:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\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 WARN extract-text-webpack-plugin@2.1.2 requires a peer of webpack@^2.2.0 but none was installed.
npm WARN webpack-dev-server@2.4.5 requires a peer of webpack@^2.2.0 but none was installed.
如何解决这个问题并安装 Webpack?
【问题讨论】:
标签: node.js angular npm webpack