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-08-27 11:24:51 +0400
committerisaacs <i@izs.me>2010-08-27 11:24:51 +0400
commiteb57cf535a04a336d523dd82f614687b7aef245d (patch)
tree2b4b75255ecb55fe78389c23835d2d6ce5d097f0 /lib
parente3486d65e72d1b09561a8fcb920331630716a5b5 (diff)
Don't fail the build if autoActivate fails.
Diffstat (limited to 'lib')
-rw-r--r--lib/build.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/build.js b/lib/build.js
index 29c48aa0b..7d7cc1aa5 100644
--- a/lib/build.js
+++ b/lib/build.js
@@ -101,8 +101,13 @@ var autoActivate = function (pkg, cb) {
pkg.name+"@"+pkg.version, "auto-activate")
return cb()
}
- log(pkg.name+"@"+pkg.version, "activate")
- npm.commands.activate([pkg.name+"@"+pkg.version], cb)
+ var u = pkg.name+"@"+pkg.version
+ log(u, "activate")
+ npm.commands.activate([u], function (er) {
+ // don't rollback the whole install if the activate fails.
+ if (er) log.error(er, "Failed to update "+u)
+ cb()
+ })
})
}