My node version is v20.12.2 and npm version is 10.5.2
When I ran npm install, I got error as followings.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: chroma-js@2.4.2
npm ERR! Found: rollup@4.18.0
npm ERR! node_modules/rollup
npm ERR! dev rollup@"^4.18.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer rollup@"^2.0.0" from rollup-plugin-terser@7.0.2
npm ERR! node_modules/rollup-plugin-terser
npm ERR! dev rollup-plugin-terser@"^7.0.2" 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.
My node version is
v20.12.2
and npm version is10.5.2
When I ran
npm install
, I got error as followings.How can I fix these erros?