Home
Angular - Do you know the stuff to install?
  v14.0 Posted at 5/07/2018 3:23 AM by Tiago Araujo

It is suggested using cli.angular.io to start an Angular project, especially when learning as it is the easiest way to both get started and also follow best practices.​

  1. Check that you are running at node 8.11+ (note: some still use 6.9+ as it works with Angular CLI). Check that you are running npm 5+ by running node in a terminal/console window.

    Older versions produce errors, but newer versions are fine. If you have older versions please install the latest version from here https://nodejs.org/en

    Check you have the right versions:

     node -v
     npm -v

  2. Install git https://git-scm.com Check you have git: 

    git --version

  3. Check you have the latest version of the Angular cli by running the below ng -v command in the terminal and checking the latest version on GitHub here https://github.com/angular/angular-cli

    ng -v

    2017-07-04_12-54-27.jpg
    Figure: Current version to check on GitHub

    If you are not running the latest version we recommend you run the below commands to update the cli.

  4. npm uninstall -g @angular/ cli (not needed to run anymore as it is done automatically)
    npm install -g @angular/ cli

  5. Getting errors?
    If you get node gyp errors, follow instructions here https://github.com/nodejs/node-gyp
    If you get permission errors, follow instructions here https://docs.npmjs.com/getting-started/fixing-npm-permissions

  6. If you are new to Angular we recommend you use VSCode - http://code.visualstudio.com  - versus Visual Studio 2015/17 as the TypeScript support and project directory (without a Visual Studio Project) is easier.

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address:

    Comments:

    Note: Social Media login for Yotpo is not working in IE or Safari, please use Chrome. We are waiting for Yotpo to fix it.