Skip to content

Can't uninstall angular-cli #5842

@RPGillespie6

Description

@RPGillespie6

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfularea: docsRelated to the documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions