Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm ERR! invalid: [email protected]

After upgrading node using brew upgrade node:

$ node -v
v0.10.30

I do a npm update -g:

$ npm -v
1.4.23

There is a ERR when npm ls -g:

npm ERR! invalid: [email protected] /usr/local/lib/node_modules/npm/node_modules/columnify/node_modules/strip-ansi
npm ERR! not ok code 0

How can I fix the error?

like image 686
ohho Avatar asked Aug 11 '14 08:08

ohho


1 Answers

Fixed by:

npm install -g npm

Source: https://github.com/npm/npm/issues/5913

like image 80
ohho Avatar answered Sep 24 '22 08:09

ohho