diff options
Diffstat (limited to 'lib/build.js')
-rw-r--r-- | lib/build.js | 9 |
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() + }) }) } |