Leonardo,
The correct command to remove the angular/cli from the project and install the latest are
npm uninstall @angular/cli
and npm install --save-dev @angular/cli@latest
. The -g
flag in the command will update the global version of angular/cli instead of the project’s local version.
You can directly run npm install --save-dev @angular/cli@latest
command and it will update the angular/cli version without having to remove it.
Alternatively, you can also edit the project’s package.json, set the angular/cli version to the desired version in the devDependencies section and run npm install
for the project from the Terminal+ view.
Hope this helps. Please let us know how it works for you.
–Swapna
MyEclipse Support