Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Create-Ionic-Svelte App - we received an error from the package manager #94

@keev-studio

Description

@keev-studio

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

2024-01-21T02_17_48_462Z-debug-0.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions