install node/nvm
-----------------
!!!!!!!!!!!For which node / angular cli to install check project angular and angular version at
https://angular.io/guide/versions
-----------------
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-22-04
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
source ~/.bashrc
nvm list-remote
nvm install v16.14.0
nvm list
nvm use 16.14.0
-----------------
Install angular CLI global(will install angular with it)
# install a version that is compatibile with your node above !!!!!!!!!!
# ALSO need to check ur project angular
# compatiblity list : https://angular.io/guide/versions
npm i -g @angular/cli@12.2.2
-----------------
make sure you install globally!!
remove angualr CLI :
https://stackoverflow.com/questions/43344600/how-to-install-a-specific-version-of-angular-with-angular-cli
npm uninstall -g angular-cli
https://stackoverflow.com/questions/41026895/checking-version-of-angular-cli-thats-installed
angular cli version
ng v
No comments:
Post a Comment