diff options
author | isaacs <i@izs.me> | 2010-11-30 03:32:27 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-11-30 03:32:27 +0300 |
commit | 2f5d04f0280904b769349298506dc9a5651deee2 (patch) | |
tree | ceefb04ef5b4d40a225ea208fa51df2deaf43b22 | |
parent | 1fe70f7cf0aebbcad463a5b432909cc3860bc61a (diff) |
Rollback regression
-rw-r--r-- | lib/install.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/install.js b/lib/install.js index b8c15e8bc..bed5dcce8 100644 --- a/lib/install.js +++ b/lib/install.js @@ -264,11 +264,12 @@ function rollbackFailure (installList, cb) { return function (er) { }).join("\n"), "installed", cb) // error happened, roll back installList = installList.map(function (p) { - return (""+p).replace(/\//, '@') + return p.join('@') }) npm.ROLLBACK = true log.error(er, "install failed") log("rollback", "install failed") + log(installList, "uninstall") return npm.commands.uninstall ( installList , function (er_) { |