When
Occurs when running npm i
on older Angular applications.
Solution
// powershell
$env:NODE_OPTIONS="--openssl-legacy-provider"
// Updating all globally-installed packages
npm update -g
// or
npm install npm@latest -g
// Determining which global packages need updating
npm outdated -g --depth=0
// Updating a single global package
npm update -g <package_name>
// install this
sudo npm i -g n
// run this command
sudo n latest
npm ls -g --depth 0
npm install [email protected]
// npm packages
npm i -g npm-check-updates
ncu -u
npm install
// angular packages
ng update --all
// global req.
npm i -g @angular/cli