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
diff options
context:
space:
mode:
authorMatt McClure <matt.mcclure@mapmyfitness.com>2013-05-29 00:59:44 +0400
committerDomenic Denicola <domenic@domenicdenicola.com>2013-06-02 04:56:46 +0400
commit6ef60235f10a4caeac2038844fe9e1489d9aaf7d (patch)
treeb9945493d5b41693c07c60beb30608579c15990d
parent365cb716404c36dfa4f5074cbc5278c6a5f76880 (diff)
doc: Mention --nodedir in npm install documentation
-rw-r--r--doc/cli/install.md3
-rw-r--r--lib/install.js2
2 files changed, 5 insertions, 0 deletions
diff --git a/doc/cli/install.md b/doc/cli/install.md
index c4d9ba649..44885f318 100644
--- a/doc/cli/install.md
+++ b/doc/cli/install.md
@@ -171,6 +171,9 @@ any binaries the package might contain.
The `--no-shrinkwrap` argument, which will ignore an available
shrinkwrap file and use the package.json instead.
+The `--nodedir=/path/to/node/source` argument will allow npm to find the
+node source code so that npm can compile native modules.
+
See `npm-config(1)`. Many of the configuration params have some
effect on installation, since that's most of what npm does.
diff --git a/lib/install.js b/lib/install.js
index 50ba5ebc5..839b57b36 100644
--- a/lib/install.js
+++ b/lib/install.js
@@ -27,6 +27,8 @@ install.usage = "npm install"
+ "\nIf no argument is supplied and ./npm-shrinkwrap.json is "
+ "\npresent, installs dependencies specified in the shrinkwrap."
+ "\nOtherwise, installs dependencies from ./package.json."
+ + "\n\nOptions
+ + "\n\n--nodedir=/path/to/node/source"
install.completion = function (opts, cb) {
// install can complete to a folder with a package.json, or any package.