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:
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()
+ })
})
}