Skip to content

SvelteKit scripts fail: npm run build/dev = Invalid command, only sync works #14024

Answered by jasonlyu123
jst20terrell asked this question in Q&A
Discussion options

You must be logged in to vote

npm create svelte has been deprecated for a long while. The svelte-kit build command has been replaced with vite build much earlier. Your PC probably has a cache for the older version. You should use the sv CLI instead.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jst20terrell
Comment options

Comment options

You must be logged in to vote
2 replies
@jst20terrell
Comment options

@jasonlyu123
Comment options

Answer selected by dummdidumm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #14023 on July 21, 2025 08:33.