Skip to content

Instantly share code, notes, and snippets.

@ekiara
Last active February 6, 2020 11:06
Show Gist options
  • Save ekiara/a271872ea065b8afef273b6def82ff68 to your computer and use it in GitHub Desktop.
Save ekiara/a271872ea065b8afef273b6def82ff68 to your computer and use it in GitHub Desktop.
setting-up-ng-serve-for-the-first-time

Want to setup and Angular dev environment so you can do ng serve?

Update or install npm

OPTION #1: Update (npm)

npm install -g npm

OPTION #2: Fresh Install (npm)

echo "TODO: ADD THE FRESH INSTALL INSTRUCTIONS FOR NPM"

Install Angular CLI

(REFERENCE "https://cli.angular.io/")

sudo npm install -g @angular/cli

For an existing Angular project

cd existing_project_directory
npm install
echo "Install Angular Devkit (incase `ng serve` does not work)"
npm install --save-dev @angular-devkit/build-angular
ng serve

For a new Angular project

ng new my-dream-app
cd my-dream-app
ng serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment