0

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?

1 Answer 1

1

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]
Sign up to request clarification or add additional context in comments.

9 Comments

Yes, I run this on Win64. So, I have the latest verison node. What next?
try installing again with npm install -f to overwrite the files that exist
There is one minds here about this issue: github.com/angular/angular/issues/13935
Will it overwrite project files? A mean Angular component files?
I tied and get: 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.
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.