Node and Angular install and update

Updated: 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 

You could be interested in

logo of the category: spring-big.svg Spring Boot: REST controller Test example

How to test the @RestController with Spring Boot
2017-10-01

logo of the category: spring-big.svg How to deploy a Java and Angular webapp in one JAR/WAR

How to configure a fullstack Angular and Spring Boot application
2018-04-26
WebApp built by Marco using SpringBoot 3.2.4 and Java 21, in a Server in Switzerland