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

npm rm -g $(npm ls) removed /usr/lib #2293

Closed
fbstj opened this issue Mar 22, 2012 · 4 comments
Closed

npm rm -g $(npm ls) removed /usr/lib #2293

fbstj opened this issue Mar 22, 2012 · 4 comments

Comments

@fbstj
Copy link

fbstj commented Mar 22, 2012

I only have what was already running left before my system dies completely I think.

@isaacs
Copy link
Contributor

isaacs commented Mar 22, 2012

That's kind of weird. npm ls outputs a tree and a bunch of stuff. It looks like the first line is the root path, though, and the path.resolve() goes up to the root.

Yeah. That sure is a ghastly bug, nevertheless. npm uninstall / could be disastrous.

@isaacs isaacs closed this as completed in b57d3bb Mar 22, 2012
@fbstj
Copy link
Author

fbstj commented Mar 23, 2012

Thanks, goes and reinstalls his system

isaacs referenced this issue in isaacs/node-v0.x-archive Mar 23, 2012
* net: don't crash when queued write fails (Igor Zinkovsky)

* sunos: fix EMFILE on process.memoryUsage() (Bryan Cantrill)

* crypto: fix compile-time error with openssl 0.9.7e (Ben Noordhuis)

* unix: ignore ECONNABORTED errors from accept() (Ben Noordhuis)

* Add UV_ENOSPC and mappings to it (Bert Belder)

* http-parser: Fix response body is not read (koichik)

* Upgrade npm to 1.1.12
  - upgrade node-gyp to 0.3.7
  - work around AV-locked directories on Windows
  - Fix isaacs/npm#2293 Don't try to 'uninstall' /
  - Exclude symbolic links from packages.
  - Fix isaacs/npm#2275 Spurious 'unresolvable cycle' error.
  - Exclude/include dot files as if they were normal files
@isaacs
Copy link
Contributor

isaacs commented Mar 23, 2012

Jeez, I'm so sorry, again. That really sucks.

@fbstj
Copy link
Author

fbstj commented Mar 24, 2012

heh, no worries mate :D npm is awesome, and I enjoy reinstalling things XD

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants