0
Each project has its own dependencies that need to be installed:
install npm:
apt install npm
check that they have been installed:
nodejs -v
npm -v
ng version
Upgrade:
Stable node:
Install the nodejs:
apt install nodejs
or
npm cache clean -f
npm install -g n
n stable
Angular CLI Remove previous version:
rm -rf /usr/local/bin/ng
install the CLI:
npm install -g @angular/cli
Upgrade:
npm install -g npm
Bro, something like this has occurred to me and I found the solution right here, try it: https://stackoverflow.com/questions/46011546/npm-install-error-rollbackfailedoptional
– Pablo Moraes