Skip to content

docs(@angular/cli): Update 1.0 upgrade guide #5876

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2017
Merged

docs(@angular/cli): Update 1.0 upgrade guide #5876

merged 1 commit into from
May 4, 2017

Conversation

RPGillespie6
Copy link
Contributor

@RPGillespie6 RPGillespie6 commented Apr 7, 2017

Added a few extra details on how to remove residual versions of Angular CLI and reorganized upgrade steps.

Fixes #5842

```

### Manually removing residual Angular CLI

If you accidentally updated NPM before removing the old Angular CLI, you may find that uninstalling the package using `npm uninstall` is proving fruitless. This is because under linux and OSX, NPM changed its global install (and uninstall) path during the upgrade process from `/usr/local/lib` to just `/usr/lib`, and hence, no longer searches through the old directory. In this case you'll have to remove it manually:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is because under linux and OSX, NPM changed its global install (and uninstall) path during the upgrade process from /usr/local/lib to just /usr/lib, and hence, no longer searches through the old directory

This is not a given, it very much depends on how node is installed. If node is installed using brew the installation location stays the same and this is not an issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I updated with new wording, let me know what you think

Added a few extra details on how to remove residual versions of Angular CLI and reorganized upgrade steps.
Copy link
Contributor

@filipesilva filipesilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the extra details, these will be useful 👍

@filipesilva filipesilva merged commit 8d8c5de into angular:master May 4, 2017
dond2clouds pushed a commit to d2clouds/speedray-cli that referenced this pull request Apr 23, 2018
Added a few extra details on how to remove residual versions of Angular CLI and reorganized upgrade steps.

Fixes angular#5842
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't uninstall angular-cli
4 participants