Reputation: 12005
I tried to install Webpack into an existing directory of a project using this command:
npm install --save-dev webpack
However, it returns the following errors:
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 [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN [email protected] requires a peer of webpack@^2.2.0 but none was installed.
npm WARN [email protected] requires a peer of webpack@^2.2.0 but none was installed.
How do I fix this and install Webpack?
Upvotes: 0
Views: 1085
Reputation: 1328
It seems that you are running this on Win32 according to
wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}
Try to update your node/npm version.
Check out a version manager for node. For windows you can try this one.
Edit:
Author did not respond. Things tried that might have worked:
npm install -f
npm install [email protected]
Upvotes: 1