Fix the upstream dependency conflict
carepollo opened this issue · 1 comments
carepollo commented
I am trying to install angular-three to an angular-cli generated app but I get this error when trying to install:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: personalsite@0.0.0
npm ERR! Found: @angular/common@15.2.1
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"^15.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^14.0.0" from @angular-three/core@6.0.1
npm ERR! node_modules/@angular-three/core
npm ERR! @angular-three/core@"*" 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.
This is my env.
- npm 9.6.0
- node 18.14.2
- Angular: 15.2.1
- OS: Linux (arch based distro)
- rxjs 7.8.0
- typescript 4.9.5
Which version of angular-three and three should I install to prevent this error?
nartc commented
@angular-three/core
is an old package. Use angular-three
instead.