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/lib
diff options
context:
space:
mode:
authorForrest L Norvell <forrest@npmjs.com>2014-09-23 02:31:50 +0400
committerForrest L Norvell <forrest@npmjs.com>2014-09-23 02:31:50 +0400
commit26b17ff2e3b21ee26c6fdbecc8273520cff45718 (patch)
treeca8a62411075aca6e63587a1f65cc17ecb739a04 /lib
parent846facacc6427dafcf5756dcd36d9036539938de (diff)
npmconf decides what the default prefix is
See #6272 for details.
Diffstat (limited to 'lib')
-rw-r--r--lib/install.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/install.js b/lib/install.js
index d7ba27435..5798ce12a 100644
--- a/lib/install.js
+++ b/lib/install.js
@@ -353,7 +353,7 @@ function save (where, installed, tree, pretty, hasArguments, cb) {
}
var saveBundle = npm.config.get("save-bundle")
- var savePrefix = npm.config.get("save-prefix") || "^"
+ var savePrefix = npm.config.get("save-prefix")
// each item in the tree is a top-level thing that should be saved
// to the package.json file.