question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UNMET PEER DEPENDENCY webpack@2.2.0-rc.3

See original GitHub issue

When I try to install laravel-mix via npm install laravel-mix --save-dev I always get the following error message: UNMET PEER DEPENDENCY webpack@2.2.0-rc.3 and at the bottom: npm WARN extract-text-webpack-plugin@2.0.0-beta.4 requires a peer of webpack@^2.1.0-beta.19 but none was installed. npm WARN webpack-dev-server@2.1.0-beta.12 requires a peer of webpack@^2.1.0-beta.26 but none was installed.

I run this in a fresh installation of Homestead and got into the vm via vagrant ssh.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
JeffreyWaycommented, Jan 22, 2017

Yeah, I’d nuke the node_modules directory and try again.

2reactions
konovalov-nkcommented, Jan 10, 2017

@QWp6t This is some kind of circular dependency. I had to fix it like this:

npm install -g webpack@^2.2.0-rc.3
npm install
npm install webpack@^2.1.0-beta.28 webpack-dev-server@2.1.0-beta.12

Otherwise, I couldn’t use features like HMR because npm install -g webpack web-dev-server gives me webpack version 1.x

Spent like 8 hours trying to understand why HMR was not working and it because laravel-mix doesn’t install webpack and it’s dependencies correctly (installs webpack version 1.x for me on Ubuntu 16.04 by default using npm install -g webpack web-dev-server, but HMR doesn’t actually update Vue modules). From the user standpoint, I don’t want even care about the dependency packages, but without these packages, it’s impossible to use the feature properly and I don’t understand why it’s not actually required.

Read more comments on GitHub >

github_iconTop Results From Across the Web

UNMET PEER DEPENDENCY webpack@2.2.0-rc.3
Create a free Team Why Teams? ... Stack Overflow for Teams is moving to its own domain! When the migration is complete, you...
Read more >
UNMET PEER DEPENDENCY webpack@2.2.0-rc.3 · Issue #69
When I try to install laravel-mix via npm install laravel-mix --save-dev I always get the following error message: UNMET PEER DEPENDENCY ...
Read more >
Nodejs build - out of memory - Render community
Hey when I'm deploying my app I keep getting an out of memory error? May 14 02:28:54 PM ==> Detected Node version 12.22.1...
Read more >
@yarnpkg/doctor - npm
By making sure all dependencies are listed in the package.json pnp can make your project less brittle. no unmet peer dependencies. This rule ......
Read more >
Understanding Peer Dependencies in JavaScript
When to use peerDependencies? Peer dependencies really come into play when you're developing code that will be used by others, such as plugins ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found