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

Can't install 6.0.1 using npm #1480

Closed
emilkrebs opened this issue Oct 17, 2023 · 5 comments
Closed

Can't install 6.0.1 using npm #1480

emilkrebs opened this issue Oct 17, 2023 · 5 comments
Labels
needs triage Awaiting triage

Comments

@emilkrebs
Copy link

When running npm i yeoman-generator or just run npm i when having the following package.json:

  "dependencies": {
    "yeoman-generator": "^6.0.1"
  },

I get the following output:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @yeoman/types@1.1.1
npm ERR! Found: mem-fs@2.3.0
npm ERR! node_modules/mem-fs
npm ERR!   peerOptional mem-fs@"^2.1.0" from mem-fs-editor@9.7.0
npm ERR!   node_modules/mem-fs-editor
npm ERR!     mem-fs-editor@"^8.1.2 || ^9.0.0" from yeoman-environment@3.19.3
npm ERR!     node_modules/yeoman-environment
npm ERR!       peerOptional yeoman-environment@"^3.18.4 || ^4.0.0-alpha.4" from yeoman-generator@6.0.1
npm ERR!       node_modules/yeoman-generator
npm ERR!         yeoman-generator@"^6.0.0" from the root project
npm ERR!         1 more (yeoman-test)
npm ERR!       1 more (yeoman-test)
npm ERR!     mem-fs-editor@"^9.7.0" from yeoman-test@7.4.0
npm ERR!     node_modules/yeoman-test
npm ERR!       dev yeoman-test@"^7.4.0" from the root project
npm ERR!   mem-fs@"^1.2.0 || ^2.0.0" from yeoman-environment@3.19.3
npm ERR!   node_modules/yeoman-environment
npm ERR!     peerOptional yeoman-environment@"^3.18.4 || ^4.0.0-alpha.4" from yeoman-generator@6.0.1
npm ERR!     node_modules/yeoman-generator
npm ERR!       yeoman-generator@"^6.0.0" from the root project
npm ERR!       1 more (yeoman-test)
npm ERR!     peer yeoman-environment@"^3.13.0" from yeoman-test@7.4.0
npm ERR!     node_modules/yeoman-test
npm ERR!       dev yeoman-test@"^7.4.0" from the root project
npm ERR!   1 more (yeoman-test)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional mem-fs@"^3.0.0" from @yeoman/types@1.1.1
npm ERR! node_modules/@yeoman/types
npm ERR!   peer @yeoman/types@"^1.0.1" from yeoman-generator@6.0.1
npm ERR!   node_modules/yeoman-generator
npm ERR!     yeoman-generator@"^6.0.0" from the root project
npm ERR!     1 more (yeoman-test)
npm ERR! 
npm ERR! Conflicting peer dependency: mem-fs@3.0.0
npm ERR! node_modules/mem-fs
npm ERR!   peerOptional mem-fs@"^3.0.0" from @yeoman/types@1.1.1
npm ERR!   node_modules/@yeoman/types
npm ERR!     peer @yeoman/types@"^1.0.1" from yeoman-generator@6.0.1
npm ERR!     node_modules/yeoman-generator
npm ERR!       yeoman-generator@"^6.0.0" from the root project
npm ERR!       1 more (yeoman-test)
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.

This does not happen when using version 5.9.0.

@mshima
Copy link
Member

mshima commented Oct 17, 2023

% mkdir test
% cd test
% npm install yeoman-generator@6.0.1

added 214 packages in 18s

57 packages are looking for funding
  run `npm fund` for details
mshima@MacBook-Air-de-Marcelo test % cat package.json
{
  "dependencies": {
    "yeoman-generator": "^6.0.1"
  }
}
% npm --version
10.2.0

@emilkrebs
Copy link
Author

Hmm, I also have the same node-version. Do you know what happened there?

@emilkrebs
Copy link
Author

emilkrebs commented Oct 17, 2023

AAhh, got it. Needed to install @types/yeoman-generator": "^5.2.12 Thanks!

@mshima
Copy link
Member

mshima commented Oct 17, 2023

Node or npm? yeoman-generator@6 requires node 16.

@emilkrebs
Copy link
Author

emilkrebs commented Oct 17, 2023

$ node --version
v18.17.0

$ npm --version
10.2.0

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

No branches or pull requests

2 participants