Angular-cli: Cannot upgrade globally from beta.5 to beta.8 without extra work

Created on 23 Jun 2016  路  8Comments  路  Source: angular/angular-cli

On OSX when I tried to do npm install -g angular-cli it would fail with the below error. However if I do an npm uninstall -g angular-cli and then try the npm install -g angular-cli

npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/Cellar/node/6.2.0/bin/node" "/usr/local/bin/npm" "install" "-g" "angular-cli"
npm ERR! node v6.2.0
npm ERR! npm  v3.8.9
npm ERR! path /usr/local/lib/node_modules/.staging/abbrev-432cdd5a
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/abbrev-432cdd5a' -> '/usr/local/lib/node_modules/angular-cli/node_modules/ember-cli/node_modules/npm/node_modules/abbrev'
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/abbrev-432cdd5a' -> '/usr/local/lib/node_modules/angular-cli/node_modules/ember-cli/node_modules/npm/node_modules/abbrev'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/zchapple/npm-debug.log
npm ERR! code 1
RFC / discussion / question

Most helpful comment

Same for me (beta6 to beta8)
Linux 4.4.0-25-generic
node v6.2.2
npm v3.10.2
path ~/.npm-global/lib/node_modules/.staging/abbrev-f8dddc67
code ENOENT
errno -2

npm r -g angular-cli and npm i -g angular-cli works fine...

All 8 comments

Remove your node_modules and install CLI on your project folder, I did it and everything works fine.

Same for me (beta6 to beta8)
Linux 4.4.0-25-generic
node v6.2.2
npm v3.10.2
path ~/.npm-global/lib/node_modules/.staging/abbrev-f8dddc67
code ENOENT
errno -2

npm r -g angular-cli and npm i -g angular-cli works fine...

+1 unfortunaly. I have the problem since the beta 6 for me.

Still having the same issue for me. Please see that attachment.
cordova issue

I am trying in windows and install nodejs v6.2.2 and npm version 3.9.5

@anoopzoondia uninstall angular-cli first then install

Uninstalling angular-cli and reinstalling it worked for me.

I was getting the same error (....staging/abbrev...)

I fixed it with
sudo npm uninstall -g angular-cli
sudo npm install -g angular-cli

This might happen between versions, but according to the update steps in https://github.com/angular/angular-cli#updating-angular-cli you do need to uninstall before.

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._

Was this page helpful?
0 / 5 - 0 ratings