-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
peer dependency confilct when creating projects using vue 2 on npm 7 #6270
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
Comments
+1 |
Same problem when I try to install / update any Vue scoped package ( |
I have the same problem with Node 15.8.0 (npm 7.5.1) but it works with Node 15.6.0 (npm 7.4.0). |
+1 |
|
+1 this is very frustrating |
It also happens when you just try to npm i @vue/cli-service on a project that is running Vue v2.x, even if you try to ignore optional peer dependancies. Switching back to an older npm version solves the issue (sudo npm install -g [email protected]) |
Just curious, @cnakamoto did you try with adding the |
Yes, I saw that afterwards and it worked on my Mac and also on my Windows machine - thanks. |
Same here on node 15.10.0 and npm 7.5.3 Using |
I believe this issue has been resolved in npm 7.5.5. |
confirm it's working on npm 7.6.0 |
it's not working on npm 7.7.6.. |
Not working on 7.6.0:
|
npm install -g [email protected] this also work on windows. |
It's no working with npm 7.10. To works we have to set the legacy-peer-deps flag and it's not normal... |
It's no working with npm 7.11. |
@dpanse ESLint 7 is only supported in Vue CLI v5.0.0-beta. That's expected. |
npm 7.12.1 is ok. |
Not working on [email protected]
|
npm 7.16.0 not working neither |
npm 7.19.1 not working |
I'm getting a CI error with a resolution error relating to Vue peer dependencies, which looks like it is this issue: vuejs/vue-cli#6270 I don't think this will work, but maybe if I manually update the package lock with a working resolution, the CI will become happy again?
I'm getting a CI error with a resolution error relating to Vue peer dependencies, which looks like it is this issue: vuejs/vue-cli#6270 I don't think this will work, but maybe if I manually update the package lock with a working resolution, the CI will become happy again?
npm 7.20.3 not working either, tried "--legacy-peer-deps" and "fix --force", both results in the following error. ➜ npm audit fix
Does anyone knows a fix for this without downgrading NPM? |
Don't use ESLint 7 with Vue CLI 4. You can use ESLint 7 with Vue CLI 5, or ESLint 6 with Vue CLI 4. |
Thanks for your reply! I've tried to downgrade, but still no luck in my setup unfortunately. It results in multiple errors for ESLint dependencies. What ESLint (cli-plugin-eslint, eslint-config-standard) versions should I use for Vue CLI 4.5.4? "@vue/cli-plugin-babel": "^4.5.4", |
Still having this issue when using npm 8.0.0
|
I created a new Vue project from scratch. I also have audit issues. which can't be solved via Using Node LTS, which is NodeJS v16.13 and NPM v8.1.
This is my first experience with VueJs... |
I'm sorry, but why is this issue closed? It is NOT resolved. I just created a new project with VueCli and I can't run |
Yea you are right. Npm audit is failing. But not resulting into security issues at the end user. I talked with the nice devs of vuejs in discord. They sent me the following article. Please, I urge you to read it: https://overreacted.io/npm-audit-broken-by-design/ Tldr: you just need to read the article. |
That article is complete bunk. Multiple attack vectors are considered when creating/assigning risk ratings. If the author doesn't understand that, that shouldn't lead you to making bad security decisions. |
vue ui deixa a instalação mais fácil. |
Hello :) npm 8.8.0 not working npm ERR! code ERESOLVE I tried with --force and also with --legacy-peer-deps and it kept "broken" |
Life saver |
npm: '9.6.1', not working |
I had the same problem when i tried install axios or any other. npm ERR! code ERESOLVE For me was resolve using --legacy-peer-deps or --force |
Having the same issue.
|
According to the README file:
|
This might help someone This is how I solve the issue of my npm dependency conflicts: I look at the conflict error message and update it to the latest version.
That works for me |
#EDIT : solved by using i have solved by
my old projects required version 12 only . all of my field get
i never touch anything ... and there is no change on commit . its run normal on yesterday before i switch my node version and not delete my node_modules.
my zshrc
here is my full package.json
vue.config.js
|
Still not solved? Work arounded my project's problem with |
Version
4.5.11
Environment info
Steps to reproduce
Run
to create a vue project and then choose vue 2. Then
What is expected?
Dependencies updated
What is actually happening?
receive an error says "ERESOLVE unable to resolve dependency tree"
Detail:
peerDependenciesMeta
used in @vue/cli-service causes unexpected behavior on npm 7The text was updated successfully, but these errors were encountered: