Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-09-04 21:15:31 +0400
committerisaacs <i@izs.me>2011-09-04 21:15:31 +0400
commitf2a2b3e6edf6a798313c73c71714fc0a89026c35 (patch)
tree356771c50f0f29ba178ea633d1614e5ffebdf5d5 /doc
parent4714c4f5885f2746043af24a8b6db709435abc65 (diff)
More doc updates
Diffstat (limited to 'doc')
-rw-r--r--doc/faq.md6
-rw-r--r--doc/removing-npm.md11
2 files changed, 14 insertions, 3 deletions
diff --git a/doc/faq.md b/doc/faq.md
index 617a3799d..dbf70bb7e 100644
--- a/doc/faq.md
+++ b/doc/faq.md
@@ -3,7 +3,11 @@ npm-faq(1) -- Frequently Asked Questions
## Where can I find these docs in HTML?
-<http://npmjs.org/doc/>
+<http://npmjs.org/doc/>, or run:
+
+ npm config set viewer browser
+
+to open these documents in your default web browser rather than `man`.
## It didn't work.
diff --git a/doc/removing-npm.md b/doc/removing-npm.md
index 20c0bf5a2..29425eeb8 100644
--- a/doc/removing-npm.md
+++ b/doc/removing-npm.md
@@ -19,19 +19,26 @@ npm, but leave behind anything you've installed.
If that doesn't work, or if you require more drastic measures,
continue reading.
+Note that this is only necessary for globally-installed packages. Local
+installs are completely contained within a project's `node_modules`
+folder. Delete that folder, and everything is gone (unless a package's
+install script is particularly ill-behaved).
+
This assumes that you installed node and npm in the default place. If
you configured node with a different `--prefix`, or installed npm with a
different prefix setting, then adjust the paths accordingly, replacing
`/usr/local` with your install prefix.
- rm -rf /usr/local/{lib/node,lib/node/.npm,bin,share/man}/npm*
+To remove everything npm-related manually:
+
+ rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/npm*
If you installed things *with* npm, then your best bet is to uninstall
them with npm first, and then install them again once you have a
proper install. This can help find any symlinks that are lying
around:
- ls -laF /usr/local/{lib/node,lib/node/.npm,bin,share/man} | grep npm
+ ls -laF /usr/local/{lib/node{,/.npm},bin,share/man} | grep npm
Prior to version 0.3, npm used shim files for executables and node
modules. To track those down, you can do the following: