diff --git a/packages/angular-cli/commands/serve.run.ts b/packages/angular-cli/commands/serve.run.ts index 4f32703e15f5..b97e427608cf 100644 --- a/packages/angular-cli/commands/serve.run.ts +++ b/packages/angular-cli/commands/serve.run.ts @@ -50,7 +50,9 @@ function checkExpressPort(commandOptions: ServeTaskOptions) { .then((foundPort: number) => { if (commandOptions.port !== foundPort && commandOptions.port !== 0) { - throw new SilentError(`Port ${commandOptions.port} is already in use.`); + throw new SilentError( + `Port ${commandOptions.port} is already in use. Use '--port' to specify a different port.` + ); } // otherwise, our found port is good