Angular, TypeScript and Nodejs: To Install and update by commands




Node.js & npm
------------------------------------------------

1. To check the last version installed:

$ node -v
$ npm -v


2. If you want to install for the first time or  reinstall:

Download directly from official site node.js org (for Mac it is not recommended install with Homebrew), then check the node and npm version.

3. If you already installed node and npm and just want to update:

    - Using npm and n:
         
           //Clear caché
           $ sudo npm cache clean -f

           //Install n
           $ sudo npm install -g n

           //Install the last stable version
           $ sudo n stable

    - Manually:

           Download the last stable version from official site node.js org and install it manually, then
           check the npm version (npm -v). If you need to update npm:

           $ npm install npm@latest -g


       
TypeScript
------------------------------------------------

1. To check the last version installed:

$ tsc -v


2. If you want to install for the first time or  reinstall:

$ npm install -g typescript


3. If you already installed and just want to update:

$ npm update -g typescript

Note: If you receive a message like "npm ERR! asyncWrite is not a function" is because latest version of node is not compatible yet with all npm modules. I recommend stable versions node like 8.11.3 or 9.4.0.

Angular CLI
------------------------------------------------

1. To check the last version installed:

$ ng --version


2. If you want to install for the first time or  reinstall:

$ npm install -g @angular/cli


3. If you already installed and just want to update:

To follow the guide Updating Angular CLI

If you need update the App, follow the next link: update angular
Thanks for your comment