Node and Angular install and update

Last Refreshed // 2023-12-06

ℹ️Draft: I only started this post recently, it will be updated soon

MacOs

Install Node.js

With bre you can install node using brew install node;

MacOs / Linux / Windows

Remove or update/downgrade Node.js

You can use nvm to modify the installed version of node.

E.g. nvm install 20 will install the current node 20 version.

➜  ~ nvm install 20 
Downloading and installing node v20.10.0... 
Downloading https://nodejs.org/dist/v20.10.0/node-v20.10.0-darwin-arm64.tar.xz... 
######################################################################### 100.0% 
Computing checksum with shasum -a 256 
Checksums matched! 
Now using node v20.10.0 (npm v10.2.3) 

To uninstall a version not currently selected you can :
nvm uninstall 19 to remove the version 19

If you simply type nvm you will get the list of all the options.

Angular

Install

Be sure that node is installed.

To install Angular type:

npm install -g @angular/cli 

With -g you install angular globally, without the parameter only at project's level.

Verify the installed version

You can use ng to verify the installed version.

➜  ~ ng v 
 
     _                      _                 ____ _     ___ 
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _| 
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | | 
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | | 
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___| 
                |___/ 
 
 
Angular CLI: 17.0.5 
Node: 20.10.0 
Package Manager: npm 10.2.3 
OS: darwin arm64 
 
Angular: undefined 
... 
 
Package                      Version 
------------------------------------------------------ 
@angular-devkit/architect    0.1700.5 
@angular-devkit/core         17.0.5 
@angular-devkit/schematics   17.0.5 
@angular/cli                 17.0.5 
@schematics/angular          17.0.5