Describe the bug
Note: This is NOT just a CLI interface question.
I know that svelte-kit CLI now only exposes sync and that dev/build/preview are meant to run via npm scripts.
The problem is:
npm run build and npm run dev BOTH FAIL with "Invalid command"—the project cannot build or run at all.
This is NOT expected or normal; scripts should always work even if CLI is minimal.
Please do not close as “expected”—this is a registry/package bug or corruption, not user error.
Reproduction
Steps to reproduce
Provision a new Ubuntu (tested 22.04/24.04, DigitalOcean NYC region, multiple VMs)
Install Node.js v20.x (and also tested v18.x)
Run:
sh
Copy
Edit
npm init svelte@latest
OR use an existing SvelteKit project (see below for package.json)
npm install
npm install @sveltejs/kit@latest @sveltejs/adapter-node@latest --save-dev --force
npx svelte-kit --help
Only sync command appears in CLI.
npm run build fails with Invalid command: build.
Cleaning npm cache, trying different versions, and forcing reinstall does NOT help.
Tried on DigitalOcean, local Windows 10, with clean npm cache and fresh folders.
Logs
What I've tried
Clean npm cache (npm cache clean --force)
Remove and reinstall all modules
Try multiple versions of @sveltejs/kit
Install from GitHub (#main, #master, #v2.25.1) — fails with git errors
Different servers, regions, and local PC (Windows 10)
Confirmed there is no global SvelteKit CLI installed
System Info
System Info
Ubuntu 22.04/24.04 (DigitalOcean, NYC region)
Node.js v20.19.1
npm 10.x
Also reproduced on local Windows 10 PC
SvelteKit version: 2.25.1
Severity
blocking all usage of SvelteKit
Additional Information
Other npm packages/frameworks install and work fine
This appears to be either a corrupted npm registry tarball, a CDN/mirror issue, or a broken SvelteKit publish (2025-07-20)
Unable to use SvelteKit for new or existing projects in production
This is currently blocking all new SvelteKit production deployments in my environment. Any advice or workaround appreciated!
Describe the bug
Note: This is NOT just a CLI interface question.
Reproduction
Steps to reproduce
Provision a new Ubuntu (tested 22.04/24.04, DigitalOcean NYC region, multiple VMs)
Install Node.js v20.x (and also tested v18.x)
Run:
sh
Copy
Edit
npm init svelte@latest
OR use an existing SvelteKit project (see below for package.json)
npm install
npm install @sveltejs/kit@latest @sveltejs/adapter-node@latest --save-dev --force
npx svelte-kit --help
Only sync command appears in CLI.
npm run build fails with Invalid command: build.
Cleaning npm cache, trying different versions, and forcing reinstall does NOT help.
Tried on DigitalOcean, local Windows 10, with clean npm cache and fresh folders.
Logs
System Info
System Info Ubuntu 22.04/24.04 (DigitalOcean, NYC region) Node.js v20.19.1 npm 10.x Also reproduced on local Windows 10 PC SvelteKit version: 2.25.1Severity
blocking all usage of SvelteKit
Additional Information
Other npm packages/frameworks install and work fine
This appears to be either a corrupted npm registry tarball, a CDN/mirror issue, or a broken SvelteKit publish (2025-07-20)
Unable to use SvelteKit for new or existing projects in production
This is currently blocking all new SvelteKit production deployments in my environment. Any advice or workaround appreciated!