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:
authorisaacs <i@izs.me>2010-05-17 02:00:14 +0400
committerisaacs <i@izs.me>2010-05-17 02:00:14 +0400
commitc53381a65200256b52613c900f73635ecd97b1aa (patch)
treef9c3cb2ce2c00abfb131e66902baa60acd2b0f4b /scripts
parent327404c0e536bbcc8c277d7738da77ec5a9e647f (diff)
Fix the stupid man -w stuff that makes the install fail on linux.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install-docs.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/install-docs.js b/scripts/install-docs.js
index 186c48d05..1466e4bf7 100644
--- a/scripts/install-docs.js
+++ b/scripts/install-docs.js
@@ -15,11 +15,10 @@ var event = process.env.npm_lifecycle_event
log(event, "docs")
-exec("man", ["-w"], function (er, code, stdout, stderr) {
- if (er) throw er
- var manpath = stdout.trim().split(":")
+exec("manpath", [], function (er, code, stdout, stderr) {
+ var manpath = er ? [] : stdout.trim().split(":")
if (manpath.indexOf(path.dirname(manTarget)) === -1) {
- log("It seems " + manTarget + " is not visible to man", "!")
+ log("It seems " + manTarget + " might not be visible to man", "!")
log("For greater justice, please add it to your man path", "!")
log("See: man man", "!")
}