-
Notifications
You must be signed in to change notification settings - Fork 64
Description
Hi, when using the command
npm create ionic-svelte-app@latest
I got error, something with dependencies
Create-Ionic-Svelte App - we received an error from the package manager - please submit issue on https://github.com/Tommertom/svelte-ionic-npm/issues
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @sveltejs/[email protected]
npm ERR! node_modules/@sveltejs/kit
npm ERR! dev @sveltejs/kit@"^1.20.4" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @sveltejs/kit@"^2.0.0" from @sveltejs/[email protected]
npm ERR! node_modules/@sveltejs/adapter-static
npm ERR! dev @sveltejs/adapter-static@"*" 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!
what to do? thanks
EDIT:
I was able to install by using --legacy-peer-deps , but what is the proper way?
EDIT2: I deleted all global packages and cleaned cache on my windows machine but the error is still there
EDIT3: At the end I was able to build it manually by your instructions