Angular - Do you know the stuff to install?
4/07/2017 1:18 PM by
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.
- 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:
- Install git https://git-scm.com Check you have git:
- 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
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
npm uninstall -g @angular/ cli
npm install -g @angular/ cli
- 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
- We recommend if you do not have a great TypeScript enabled IDE yet that you use http://code.visualstudio.com
Do you feel this rule needs an update?