diff --git a/.changeset/few-kiwis-breathe.md b/.changeset/few-kiwis-breathe.md new file mode 100644 index 0000000000..9c977a4211 --- /dev/null +++ b/.changeset/few-kiwis-breathe.md @@ -0,0 +1,5 @@ +--- +"blitz": patch +--- + +Fixed incorrect terminal message after creating a new Blitz project to use the correct command (`npm run dev` or `yarn dev`). diff --git a/packages/blitz/src/cli/commands/new.ts b/packages/blitz/src/cli/commands/new.ts index 00ea987849..d2bfca7896 100644 --- a/packages/blitz/src/cli/commands/new.ts +++ b/packages/blitz/src/cli/commands/new.ts @@ -274,7 +274,7 @@ const newApp: CliCommand = async () => { ) } - postInstallSteps.push(`${projectPkgManger} blitz dev`) + postInstallSteps.push(`${projectPkgManger} ${projectPkgManger === "npm" ? "run " : ""}dev`); console.log("\n Your new Blitz app is ready! Next steps:") postInstallSteps.forEach((step, index) => {