sveltejs / cli

The Svelte CLI
MIT License
259 stars 11 forks source link

`npm install` errors out after running `npx svelte-migrate sveltekit-2` #280

Open nmalchy opened 11 months ago

nmalchy commented 11 months ago

Describe the bug

Running npm install does not work after running the migration command to sveltekit v2

Here is the error I am getting: image

Here is my diff after the migration command: image

Reproduction

Run npx svelte-migrate sveltekit-2 and then npm install

Logs

No response

System Info

Windows 10, git bash

Severity

blocking an upgrade

Additional Information

No response

hanszoons commented 11 months ago

Yes i had to install the new versions manually again too to get rid of that error.

nmalchy commented 11 months ago

Yes i had to install the new versions manually again too to get rid of that error.

Tried that and still not working, I think it has to do with my other dependencies like Sentry, I'm sure a fresh project will be fine but I think I just have to wait for the other projects to catch up, it has only been a day.

peterpeterparker commented 11 months ago
npm rm @sveltejs/adapter-static @sveltejs/kit @sveltejs/vite-plugin-svelte
npm i
npm i @sveltejs/adapter-static @sveltejs/kit @sveltejs/vite-plugin-svelte -D
SKAT-16 commented 11 months ago
npm rm @sveltejs/adapter-static @sveltejs/kit @sveltejs/vite-plugin-svelte
npm i
npm i @sveltejs/adapter-static @sveltejs/kit @sveltejs/vite-plugin-svelte -D

this hasn't worked for me

SKAT-16 commented 11 months ago

This worked for me I used --force flag based on the answer from @peterpeterparker npm rm @sveltejs/kit @sveltejs/vite-plugin-svelte --force npm i npm i @sveltejs/adapter-static @sveltejs/kit @sveltejs/vite-plugin-svelte -D

Hope this helps someone else.

vytenisstaugaitis commented 10 months ago
rm package-lock.json
npm install