Can't uninstall angular-cli
See original GitHub issueBug Report or Feature Request (mark with an x
)
- [x] bug report -> please search issues before submitting
- [ ] feature request
Versions.
@angular/cli: 1.0.0
node: 7.8.0
os: linux x64
Repro steps.
Install angular-cli globally with old version of npm. Upgrade npm to new version. You can no longer uninstall the previously installed angular-cli as the global install path changed from /usr/local/lib/node_modules
to /usr/lib/node_modules
. This old install will act as poison and prevent you from upgrading to 1.0.0
.
The log given by the failure.
Desired functionality.
Update upgrade guide to account for older versions of npm.
I was able to remove poison with:
$ sudo rm -rf /usr/local/lib/node_modules/@angular
$ sudo rm /usr/local/bin/ng
And then reinstalling with npm.
Mention any other details that might be useful.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:11 (10 by maintainers)
Top Results From Across the Web
Cannot uninstall angular-cli - node.js - Stack Overflow
If you are facing issue with angular/cli then use the following commands: npm uninstall -g angular ...
Read more >How to Completely Delete/Uninstall Angular/Angular CLI ...
In this article, we will be showing you how to completely delete/uninstall Angular and Angular CLI globally from your mac in a few...
Read more >How to Uninstall Angular Cli - Stacksjar
If you are unable to uninstall angular cli even after doing the steps mentioned try using sudo if you are a Linux user...
Read more >Uninstall and Reinstall Angular cli - Javatpoint
We will use the following command to uninstall Angular CLI like this: npm uninstall -g @angular/cli.
Read more >How to Uninstall Angular CLI Completely - YouTube
In this video I will show how to uninstall Angular CLI completely from Linux, Ubuntu and Windows using npm (node package manager).
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@beeman No, the issue is indeed with Angular CLI, specifically the Upgrade Guide
From the Upgrade Guide:
Ok, so step one is to update Node and NPM if they are out of date. I did so. Oops, now there’s a poisoned angular-cli in my system that I can never get rid of thanks to your guide!
Guide needs to be fixed so that:
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.