sveltetron-9000 icon indicating copy to clipboard operation
sveltetron-9000 copied to clipboard

npm install fails on fresh checkout

Open benmccann opened this issue 3 years ago • 2 comments

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/svelte-loader
npm ERR!   dev svelte-loader@"^3.0.0" from the root project
npm ERR!   peer svelte-loader@"*" from @storybook/[email protected]
npm ERR!   node_modules/@storybook/svelte
npm ERR!     dev @storybook/svelte@"^6.2.2" from the root project
npm ERR!     peer @storybook/svelte@"^6.1.20" from @storybook/[email protected]
npm ERR!     node_modules/@storybook/addon-svelte-csf
npm ERR!       dev @storybook/addon-svelte-csf@"^1.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer svelte-loader@"^2.9.1" from @storybook/[email protected]
npm ERR! node_modules/@storybook/addon-svelte-csf
npm ERR!   dev @storybook/addon-svelte-csf@"^1.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! 
npm ERR! See ~/.npm/eresolve-report.txt for a full report.

Perhaps the best fix would be to upgrade https://github.com/storybookjs/addon-svelte-csf to use svelte-loader 3.0?

benmccann avatar Apr 06 '21 17:04 benmccann

It looks like there's a pending PR to do the upgrade: https://github.com/storybookjs/addon-svelte-csf/pull/19

benmccann avatar Apr 06 '21 17:04 benmccann

Hi, sorry for the late reply This is pretty weird. I didnt come across this because I used yarn and it works perfectly using yarn. But npm i seems to error for some reason. Maybe you can continue with yarn for now and we'll wait for that upgrade :D

tejasag avatar Apr 08 '21 12:04 tejasag