Open qlbit-com opened 2 years ago
assume you checking out a project fresh, when no node_modules, no package-lock.json is available.
when package.json references riot 7.0.3 and riot@hot-reload 6.0.0 npm install shows error
npm install
npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: undefined@undefined npm ERR! Found: riot@7.0.3 npm ERR! node_modules/riot npm ERR! riot@"^7.0.3" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer riot@"^6.0.0" from @riotjs/hot-reload@6.0.0 npm ERR! node_modules/@riotjs/hot-reload npm ERR! @riotjs/hot-reload@"^6.0.0" 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. npm ERR!
steps to reproduce:
node_modules
package-lock.json
workaround available:
@qlbit-com for now you can simply install it with npm i @riotjs/hot-reload -f. During the next few weeks I will need to update the Riot.js ecosystem bumping the dependencies to v7
npm i @riotjs/hot-reload -f
assume you checking out a project fresh, when no node_modules, no package-lock.json is available.
when package.json references riot 7.0.3 and riot@hot-reload 6.0.0
npm install
shows errorsteps to reproduce:
node_modules
folder availablepackage-lock.json
file availablenpm install
workaround available:
npm install
npm install
again; it will succeed