Michael Durrant
Michael Durrant

Reputation: 96584

[email protected] requires a peer of webpack@2 || 3 but none was installed

When doing

npm install babel-loader

I get

├── [email protected] 
└── UNMET PEER DEPENDENCY webpack@2 || 3

npm WARN [email protected] requires a peer of webpack@2 || 3 but none was installed

How can I address this warning or what will it mean if I don't / can't ?

Versions:

$ webpack -v
3.3.0
$ node -v
v6.11.1

[email protected]

Upvotes: 2

Views: 3031

Answers (1)

Michael Durrant
Michael Durrant

Reputation: 96584

I was able to do this:

npm install webpack@3

Then when I do npm install babel-loader I get other optional dependency warnings, so not sure if that is ok. Most about fsevents which seems to be something about my Ubuntu OS

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":"linux","arch":"x64"})

Upvotes: 2

Related Questions