Registry / devops / create-new-svelte

create-new-svelte

JSON →
library0.3.0jsnpmunverified

A CLI tool to scaffold new Svelte applications with support for multiple bundlers (Rollup, Webpack, Snowpack, Parcel) and transpilers (JavaScript, TypeScript, CoffeeScript). Version 0.3.0 is the latest stable release. Unlike Svelte's official template, it offers interactive or command-line choice of bundler and transpiler, npx usage, and an --no-install option. It requires Node >=10 and has no runtime dependencies.

npm install create-new-svelte
INSTALL
IMPORT
SIG · CREATE-NEW-SVELTE
C
create-new-svelte
devopsjavascriptv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CLI tool
npx create-new-svelte my-app
npm install -g create-new-svelte
npx is recommended over global install to always get latest version.

Creates a new Svelte app with Rollup bundler and TypeScript transpiler, then starts the dev server.

npx create-new-svelte my-svelte-app --bundler rollup --transpiler typescript cd my-svelte-app npm run dev
Debug
Known issues
gotchaWhen using Webpack bundler, the generated config file is named webpack.config.js but may not include all necessary Svelte loaders. Check webpack config if build fails.
fix
Manually add svelte-loader configuration if needed.
affects: *
gotchaThe Parcel bundler is experimental and may not work out of the box. Consider using Rollup or Webpack for production.
fix
Use --bundler rollup or --bundler webpack instead.
affects: *
gotchaCoffeeScript transpiler is outdated. The generated project may have compatibility issues with recent Svelte versions.
fix
Choose TypeScript or JavaScript instead.
affects: *
gotchaThe default template sets up a simple project. For advanced configurations (e.g., CSS preprocessors, SSR), manual setup is required.
fix
Refer to Svelte documentation for advanced configurations.
affects: *
Errors
Common errors & fixes
create-new-svelte: command not found
Not installed globally or not using npx.
fix
Run with npx: npx create-new-svelte my-app
Error: Cannot find module 'commander'
Global install corrupted or missing dependencies when using npm link.
fix
Uninstall and reinstall globally: npm uninstall -g create-new-svelte && npm install -g create-new-svelte
Upgrade
Version history
0.3.0latest on npm
Audit
Dependencies
commanderrequiredused for CLI argument parsing
Agent activity
4 hits · last 30 days
node
4
Resources
create-new-svelte — npm install create-new-svelte · libregistry