question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't uninstall angular-cli

See original GitHub issue

Bug 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:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
RPGillespie6commented, Apr 5, 2017

@beeman No, the issue is indeed with Angular CLI, specifically the Upgrade Guide

From the Upgrade Guide:

Angular CLI can now be found on NPM under @angular/cli instead of angular-cli, and has a minimum requirement of Node 6.9.0 or higher, together with NPM 3 or higher.

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:

  1. Uninstalling angular-cli step happens before upgrading node or npm
  2. Upgrade node or npm if necessary
  3. Install latest angular-cli
0reactions
angular-automatic-lock-bot[bot]commented, Sep 7, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found