Note: This article was published on 10/05/2024.

This is a seres of articles about Angular Installation, Upgrading.

A - Introduction

This article is to discuss a upgrading process for an Angular app at initial point.

The content of this article:

B - Setup Initial Environment

For an angular development environment, we usually need the following:

The logic amound these four

So, we need to install node.js first, then using npm inside to install TypeScript and Angular.

Download:

Run:

Check versions: both Node.js and npm

with extension: Nx Cosole --- this tool is very useful for SPA development and will be discussed in details later

C - Make App Running after Cloned from Git Repository

At this point, we have environment set up as in B. Then, we

C.1 - Get Code from Repository

C.2 - Install Labraries

By running npm command:

npm install

We run this

npm install --legacy-peer-deps

Note:

See the difference between --legacy-peer-deps and --force, where

C.3 - Run the App

Run the App, we got so many errors like the followings:

......

Google the bug: "Error: error:0308010C:digital envelope routines::unsupported", we found

The solution could be Downgrade to Node.js v16.

Then we downgraded to node.js version 16, like this

Then the running is good:

Now we are ready to start to upgrade the App.

Referemces