Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legacy Peer Deps + Newer Versions of NPM Breaking Install #1

Open
ghost opened this issue Jul 28, 2021 · 0 comments
Open

Legacy Peer Deps + Newer Versions of NPM Breaking Install #1

ghost opened this issue Jul 28, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 28, 2021

Under more recent versions of NPM, when running npm install, the following occurs whenever a newer version of Laravel Mix is utilized than specified in this libraries package.json peerDependencies.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: [email protected]
npm ERR! node_modules/laravel-mix
npm ERR!   dev laravel-mix@"^6.0.25" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer laravel-mix@"^2.1.7" from [email protected]
npm ERR! node_modules/laravel-mix-dload
npm ERR!   dev laravel-mix-dload@"^1.0.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Running npm install with the --legacy-peer-deps option seems to do the trick, but this is pretty hackish in nature and isn't really a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants