-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Description
🐞 Bug report
Command (mark with an x
)
- uninstall
- update
Is this a regression?
NO
Description
Cannot uninstall or upgrade angular-cli on Mac Big Sur.
🔬 Minimal Reproduction
FOR UNINSTALLING
sudo npm uninstall -g angular-cli
sudo npm uninstall -g @angular/cli
sudo npm cache clean --force
sudo npm cache verify --force
All of these commands reported no issues and appear to have executed just fine. However, if I issue ng version after issuing these commands, I still get my old versions like shown above.
FOR UPDATING
sudo ng update
, shows error as below.
-->
🔥 Exception or Error
The attempt to uninstall shows no error, all seam to be fine but reissuing ng version still shows old version (also tried restarting terminal and even machine but no effect).
The attempt to update angular-cli shows error:
The "@angular-devkit/schematics" package cannot be resolved from the workspace root directory. This may be due to an unsupported node modules structure.
Please remove both the "node_modules" directory and the package lock file; and then reinstall.
If this does not correct the problem, please temporarily install the "@angular-devkit/schematics" package within the workspace. It can be removed once the update is complete.
I am not inside any project folder so I dont understand why does it complain about node_modules directory or package.lock file.
🌍 Your Environment
Angular CLI: 9.1.9
Node: 17.4.0
OS: darwin x64
Angular:
...
Ivy Workspace:
Package Version
------------------------------------------------------
@angular-devkit/architect 0.901.9
@angular-devkit/core 9.1.9
@angular-devkit/schematics 9.1.9
@schematics/angular 9.1.9
@schematics/update 0.901.9
rxjs 6.5.4
e>
Anything else relevant?
Metadata
Metadata
Assignees
Labels
No labels