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:
authorisaacs <i@izs.me>2010-05-06 01:15:04 +0400
committerisaacs <i@izs.me>2010-05-06 01:15:04 +0400
commit0c3e3ac88ba40f19e6275c723f88983d87de77c5 (patch)
tree1cadf3c487f25534b1b10360f8ddf849d93fd794 /lib
parent8688302cbfe839c8126f9903d9212ea56b298020 (diff)
Fix for bug reported by @mikeal http://gist.github.com/391441
Diffstat (limited to 'lib')
-rw-r--r--lib/install.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/install.js b/lib/install.js
index 7caaa62cd..b6835e2ee 100644
--- a/lib/install.js
+++ b/lib/install.js
@@ -226,7 +226,8 @@ function installLocalTarball (tarball, cb) {
, [unpackTar, tarball, folder]
, function (er) {
if (er) return cb(er)
- readJson(path.join(folder, "package.json"), function (er,data) {
+ readJson(path.join(folder, "package.json"), function (er, data) {
+ if (er) return cb(er)
chain
( [moveIntoPlace, folder, data]
, [log, data._id, "moved into place"]