-
Notifications
You must be signed in to change notification settings - Fork 12k
angular-cli installation fails renaming /usr/local/lib/node_modules/.staging/abbrev #1190
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
Comments
+1 |
UPDATE: uninstalling and reinstalling angular-cli should fix the issue:as mentioned by @nikokosh and @davidrensh below try:
This worked for me in the latest versions as well. Original quick fix: reinstalling nodeSomehow in earlier angular-cli version it seemed to me angular-cli somehow broke node installation. Manual fix, uninstalling and reinstalling node completely fixed the issue for me. hope i didn't forget anything:
|
Related to this: the procedure in the "upgrade guide": https://github.com/angular/angular-cli#updating-angular-cli is very off-putting, a negative quality signal. Many, many developers upgrade many NPM packages every day, without throwing away their NPM cache (!!). To make these instruction confidence-inspiring, there should be:
|
+1, Windows 10, running cmd as admin npm v3.8.1 |
+1 @manuelfink thank you very much, works fine! :) |
@manuelfink Very weird that it's breaking the global npm... I'll flag this as urgent but I don't have a linux machine to debug myself. @kylecordes Angular-CLI uses the same upgrade guide as Ember-CLI because it is essentially an Ember-CLI addon. See https://github.com/ember-cli/ember-cli/releases |
+1 |
+1 kylecordes link works for fix: |
I had the same problem on El Capitan It was solved by simple uninstall of angular-cli: And its immediate reinstalling: Without npm reinstalling you can keep your cache and all the dependencies as it was. |
Solved by (nothing else): |
+1 Also solved by @davidrensh solution: |
I had the same problem and it was also solved by @davidrensh solution: windows 10 64 bit |
@nikokosh and @davidrensh solution worked for me as well. No need to reinstall |
The fixes mentioned here work for me too, but they happen again as soon as I try to run |
@filipesilva @ShadowManu I can confirm, still having the same issue every time I try to update angular-cli I ran across the problem. |
In my case, I first changed my node version to 6.6.0 with npm 3.10.3. And then I changed my permissions of the location where node is located using this link : https://docs.npmjs.com/getting-started/fixing-npm-permissions |
I can also confirm that after a failed angular-cli install due to this problem, if you uninstall angular-cli via npm and then reinstall angular-cli globally it works (or worked...for me...once). Window 10 |
@manuelfink The uninstall/reinstall worked for me on Windows 10 with node 6.x/npm 3.x. Weird, but whatevs, it's working. Thank you. |
Reinstall -g angular-cli doesn't help me on win 8.1, node 4+, npm 3+. I get the same error. In the same time if I open location of angular-cli, on my pc and start ng new path\to\app from this location it actually creates folder and install dependencies |
+1 on sierra, uninstalled node/npm with the steps above, reinstalled node v7. installing ngcli still threw lots of errors on dependencies but the fallbacks seemed to work out pretty good. Currently working after above steps. |
Closing this as obsolete. This is an NPM issue. |
fixed by updating npm |
Fixed the same error in multiple locations by deleting |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Environment
Mac on latest El Capitan
node v6.2.2 with npm 3.10.2
Repro steps.
sudo npm install -g angular-cli
orsudo npm update -g angular-cli
not sure which i run)Error
The text was updated successfully, but these errors were encountered: