webviewer-ui
webviewer-ui copied to clipboard
[Bug] npm install failed
WebViewer version 8.9
Seen behavior npm install returns the following error message:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^17.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0-0" from [email protected]
npm ERR! node_modules/react-swipeable
npm ERR! react-swipeable@"^5.5.1" 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.
Seems like there are dependency conflicts in your dependency tree, please update or pin some of your libs to a specific version to fix this.
The expected behavior npm install should install the app without problems.
Steps to reproduce
npm install
Hello @TiansuYu,
I am not able to repro this on a fresh install of 8.9 - I am using the following:
node v16.14.0
npm 8.3.1
We have had some users experience this and recommended using --legacy-peer-deps
, starting in NPM 8 there were changes with how the dependencies are installed - more about that here.
Thanks for the help. npm install --legacy-peer-deps
works quite well for me.