gka / chroma.js

JavaScript library for all kinds of color manipulations
https://vis4.net/chromajs/
Other
9.94k stars 543 forks source link

npm ERR! code ERESOLVE occurs on `npm install` #335

Open MasaruKitajima opened 1 month ago

MasaruKitajima commented 1 month ago

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.

How can I fix these erros?