Skip to content

npm v7 incompatibility #5958

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

Closed
rajeshjaga opened this issue Oct 14, 2020 · 2 comments · Fixed by #5961
Closed

npm v7 incompatibility #5958

rajeshjaga opened this issue Oct 14, 2020 · 2 comments · Fixed by #5961
Labels
intend to implement The team has the intention to implement this feature at some point. Contribution is also welcome.

Comments

@rajeshjaga
Copy link

Version

4.5.7

Reproduction link

https://github.com/rajeshjaga/vue-cli-report

Environment info

  System:
    OS: Windows 10 10.0.19042
    CPU: (4) x64 Intel(R) Core(TM) i3-6006U CPU @ 2.00GHz
  Binaries:
    Node: 14.11.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 7.0.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 85.0.4183.121
    Edge: Spartan (44.19041.423.0), Chromium (86.0.622.38)
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

clone the linked repo
npm install
&&
to resolve this prob:
change eslint version in package.json 7.11.0

What is expected?

vue create app
created successfully

What is actually happening?

code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR! dev eslint@"^6.7.2" from the root project


Please bump up eslint version to 7.11.0
I resolve it by changing the version on package.json

@haoqunjiang haoqunjiang changed the title Eslint version confilicts npm v7 incompatibility Oct 14, 2020
@haoqunjiang haoqunjiang added the intend to implement The team has the intention to implement this feature at some point. Contribution is also welcome. label Oct 14, 2020
@haoqunjiang
Copy link
Member

Workaround: npm config set legacy-peer-deps true

@rajeshjaga
Copy link
Author

$ npm config set legacy-peer-deps true
validBefore? true
"this was the response" and vue creates the project perfectly.
Should I close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
intend to implement The team has the intention to implement this feature at some point. Contribution is also welcome.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants