diff options
author | isaacs <i@izs.me> | 2011-09-04 21:15:31 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-09-04 21:15:31 +0400 |
commit | f2a2b3e6edf6a798313c73c71714fc0a89026c35 (patch) | |
tree | 356771c50f0f29ba178ea633d1614e5ffebdf5d5 /html | |
parent | 4714c4f5885f2746043af24a8b6db709435abc65 (diff) |
More doc updates
Diffstat (limited to 'html')
-rw-r--r-- | html/doc/faq.html | 6 | ||||
-rw-r--r-- | html/doc/removing-npm.html | 11 |
2 files changed, 14 insertions, 3 deletions
diff --git a/html/doc/faq.html b/html/doc/faq.html index f17517478..447c0bd8a 100644 --- a/html/doc/faq.html +++ b/html/doc/faq.html @@ -341,7 +341,11 @@ input.submit, input#submit, input.button, button, input[type=submit] { <h2 id="Where-can-I-find-these-docs-in-HTML">Where can I find these docs in HTML?</h2> -<p><a href="http://npmjs.org/doc/">http://npmjs.org/doc/</a></p> +<p><a href="http://npmjs.org/doc/">http://npmjs.org/doc/</a>, or run:</p> + +<pre><code>npm config set viewer browser</code></pre> + +<p>to open these documents in your default web browser rather than <code>man</code>.</p> <h2 id="It-didn-t-work">It didn't work.</h2> diff --git a/html/doc/removing-npm.html b/html/doc/removing-npm.html index b2199c186..e4c9166e4 100644 --- a/html/doc/removing-npm.html +++ b/html/doc/removing-npm.html @@ -357,19 +357,26 @@ npm, but leave behind anything you've installed.</p> <p>If that doesn't work, or if you require more drastic measures, continue reading.</p> +<p>Note that this is only necessary for globally-installed packages. Local +installs are completely contained within a project's <code>node_modules</code> +folder. Delete that folder, and everything is gone (unless a package's +install script is particularly ill-behaved).</p> + <p>This assumes that you installed node and npm in the default place. If you configured node with a different <code>--prefix</code>, or installed npm with a different prefix setting, then adjust the paths accordingly, replacing <code>/usr/local</code> with your install prefix.</p> -<pre><code>rm -rf /usr/local/{lib/node,lib/node/.npm,bin,share/man}/npm*</code></pre> +<p>To remove everything npm-related manually:</p> + +<pre><code>rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/npm*</code></pre> <p>If you installed things <em>with</em> 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:</p> -<pre><code>ls -laF /usr/local/{lib/node,lib/node/.npm,bin,share/man} | grep npm</code></pre> +<pre><code>ls -laF /usr/local/{lib/node{,/.npm},bin,share/man} | grep npm</code></pre> <p>Prior to version 0.3, npm used shim files for executables and node modules. To track those down, you can do the following:</p> |