diff options
author | isaacs <i@izs.me> | 2010-08-24 22:40:11 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-08-25 16:21:49 +0400 |
commit | 3465d16816e23fffcfc25316cc4e4b452d9dcc99 (patch) | |
tree | b7ec333d2cb4b74d3d6bdab76610fc16b020c6ad | |
parent | 6b79ac1843aff5f5fcc806e9d7388747dd8aebc2 (diff) |
fixup
-rw-r--r-- | lib/install.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/install.js b/lib/install.js index e7b8d4a2b..1ca371bb0 100644 --- a/lib/install.js +++ b/lib/install.js @@ -163,8 +163,9 @@ function findSatisfying (pkg, name, range, mustHave, reg) { function finisher (pkg, reg, pkglist, cb) { return function (er, data) { if (er) return log.er(cb, "Error installing "+pkg)(er) if (!data._nodeSupported) cb(new Error( - data.name+"@"+data.version+" not compatible with node@"+process.version+"\n"+ - "Requires node@"+data.engines.node+"\n")) + data.name+"@"+data.version+" not compatible with your version of node\n"+ + "Requires: node@"+data.engines.node+"\n"+ + "You have: node@"+process.version)) if (!reg.hasOwnProperty(data.name)) { reg[data.name] = Object.create(reg[data.name] || Object.prototype) |