diff --git a/packages/@vue/cli/lib/Creator.js b/packages/@vue/cli/lib/Creator.js index 870d541c0..9b636fd55 100644 --- a/packages/@vue/cli/lib/Creator.js +++ b/packages/@vue/cli/lib/Creator.js @@ -172,7 +172,7 @@ module.exports = class Creator { log(`🎉 Successfully created project ${chalk.yellow(name)}.`) log( `👉 Get started with the following commands:\n\n` + - chalk.cyan(` ${chalk.gray('$')} cd ${name}\n`) + + (this.context === process.cwd() ? `` : chalk.cyan(` ${chalk.gray('$')} cd ${name}\n`)) + chalk.cyan(` ${chalk.gray('$')} ${packageManager === 'yarn' ? 'yarn serve' : 'npm run serve'}`) ) log()