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-02-22 09:03:04 +0300
committerisaacs <i@izs.me>2011-02-22 09:04:35 +0300
commit67aa1d77bb179dd9f2fc3c0320993ba9bf3f93ee (patch)
tree186c9c645c5b79c260f0379fdf569282c3ff14ef
parentf2d59032ac8dd21d8817272cc2647377dfe42c1e (diff)
blow through errors in deactivate
check out, npm link, then remove the source, and npm rm would be broken, because the deactivate coudln't read the json.
-rw-r--r--lib/deactivate.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/deactivate.js b/lib/deactivate.js
index dcc691ad7..458a29c7f 100644
--- a/lib/deactivate.js
+++ b/lib/deactivate.js
@@ -83,7 +83,7 @@ function preDeactivate (pkg, cb) {
if (er) return cb()
var version = path.basename(p)
readJson(jsonFile, function (er, data) {
- if (er) return cb(er)
+ if (er) return cb()
data.version = version
data._id = data.name+"@"+data.version
npm.set(data)