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>2011-10-22 05:34:22 +0400
committerisaacs <i@izs.me>2011-10-22 05:34:22 +0400
commit2e457459673f24aba25451b858a47cd22e873c7f (patch)
treed60fdd9c953be0471a47f03382bf1a51e1cc4427 /lib/bin.js
parentc12817f6332bd4c9e7926e4b212498e0cb03289b (diff)
Close #1582 Make prefixes better on windows
1. Make prefixes and paths more windows-like on windows. 2. Abstract out all path-munging behavior to lib/npm.js where it belongs.
Diffstat (limited to 'lib/bin.js')
-rw-r--r--lib/bin.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bin.js b/lib/bin.js
index 46535564d..bd82bc9e3 100644
--- a/lib/bin.js
+++ b/lib/bin.js
@@ -7,8 +7,7 @@ bin.usage = "npm bin\nnpm bin -g\n(just prints the bin folder)"
function bin (args, cb) {
var path = require("path")
- , global = npm.config.get("global")
- , b = global ? path.join(npm.prefix, "bin") : path.join(npm.dir, ".bin")
+ , b = npm.bin
, PATH = (process.env.PATH || "").split(":")
output.write(b, function (er) { cb(er, b) })