diff --git a/.changeset/two-ties-begin.md b/.changeset/two-ties-begin.md new file mode 100644 index 000000000000..48359cef2643 --- /dev/null +++ b/.changeset/two-ties-begin.md @@ -0,0 +1,5 @@ +--- +'create-svelte': patch +--- + +Prompt to npm install before prompting to git init diff --git a/packages/create-svelte/bin.js b/packages/create-svelte/bin.js index e490d196b33d..0dea68b0d536 100755 --- a/packages/create-svelte/bin.js +++ b/packages/create-svelte/bin.js @@ -136,9 +136,9 @@ async function main() { console.log(` ${i++}: ${bold(cyan(`cd ${relative}`))}`); } + console.log(` ${i++}: ${bold(cyan('npm install'))} (or pnpm install, etc)`); // prettier-ignore console.log(` ${i++}: ${bold(cyan('git init && git add -A && git commit -m "Initial commit"'))} (optional step)`); - console.log(` ${i++}: ${bold(cyan('npm install'))} (or pnpm install, etc)`); console.log(` ${i++}: ${bold(cyan('npm run dev -- --open'))}`); console.log(`\nTo close the dev server, hit ${bold(cyan('Ctrl-C'))}`);