Home
Angular - Do you know the stuff to install?
  v9.0 Posted at 4/07/2017 1:18 PM by Duncan Hunter

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.

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

  1. Check that you are running at least node 6.9.x and npm 3.x.x by running node -v and  npm -v 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
    npm install -g @angular/ cli

  5. 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. We recommend if you do not have a great TypeScript enabled IDE yet that you use http://code.visualstudio.com


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.