Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm ERR! invalid: strip-ansi@0.2.2 #5913

Closed
horaceho opened this issue Aug 11, 2014 · 4 comments
Closed

npm ERR! invalid: strip-ansi@0.2.2 #5913

horaceho opened this issue Aug 11, 2014 · 4 comments
Labels

Comments

@horaceho
Copy link

$ npm ls -g --verbose
npm info it worked if it ends with ok
npm verb cli [ 'node', '/usr/local/bin/npm', 'ls', '-g', '--verbose' ]
npm info using npm@1.4.23
npm info using node@v0.10.30
npm verb node symlink /usr/local/bin/node
/usr/local/lib
...
...
...
npm ERR! invalid: strip-ansi@0.2.2 /usr/local/lib/node_modules/npm/node_modules/columnify/node_modules/strip-ansi
npm verb exit [ 1, true ]
npm ERR! not ok code 0
@timoxley
Copy link
Contributor

how did you "upgrade" npm?

@timoxley
Copy link
Contributor

try this to restore npm:

npm install -g npm

@timoxley
Copy link
Contributor

Actually, first can you paste the lines that you removed from the log output?

@horaceho
Copy link
Author

@timoxley, I upgraded by $ npm update -g before. npm install -g npm fixed the issue. Thanks!

@othiym23 othiym23 changed the title npm ERR! invalid: strip-ansi@0.2.2 after upgrading npm on OS X Mavericks npm ERR! invalid: strip-ansi@0.2.2 Sep 21, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants