在NodeJS下安装Calipso失败

时间:2011-07-20 10:42:42

标签: javascript linux node.js

为了让Calipso npm install获得ok,我必须杀死(或只是修改)哪个配置文件?

这是安装日志:

npm info it worked if it ends with ok
npm info using npm@0.2.11-5
npm info using node@v0.4.9
npm info calculating sha1 /usr/local/lib/node/.npm/.cache/calipso/0.2.0/package.tgz
npm info shasum 8c894356ba35bcb7ec9a8dbd4abf545a65fe34fe
npm info range jade@>=0.11.0
npm info range stylus@>=0.12.2
npm info range express@>=2.2.1
npm info range mime@>=1.2.2
npm info range winston@>=0.2.7
npm info range request@>=1.9.5
npm info range connect-form@>=0.2.1
npm info range ejs@>=0.3.1
npm info range underscore@>=1.1.6
npm info range qs@>=0.1.0
npm info range mongodb@>=0.9.3
npm info range pool@>=0.4.1
npm info range connect@>=1.3.0
npm info range mongoose@>=1.2.0
npm info range cluster@>=0.6.0
npm info range eyes@0.1.x
npm info range pkginfo@0.2.x
npm info range loggly@0.3.x
npm info range log@>= 1.2.0
npm info range formidable@>= 0.9.3

从这里开始吧:

npm info fetch http://registry.npmjs.org/hooks/-/hooks-0.1.9.tgz
npm info calculating sha1 /var/folders/L5/L5b8zccxFYiv8aXPH4Xpr++++TI/-Tmp-/npm-1311158342434/1311158345082-0.03321287292055786/tmp.tgz
npm info shasum 064e8bba3fca0e6611408c011ba7958c1055bb4e
npm ERR! Error: Using '>=' with 0.4.x makes no sense. Don't do it.
npm ERR!     at /usr/local/Cellar/npm/0.2.11-5/libexec/lib/utils/semver.js:94:29
npm ERR!     at String.replace (native)
npm ERR!     at replaceXRange (/usr/local/Cellar/npm/0.2.11-5/libexec/lib/utils/semver.js:88:25)
npm ERR!     at Array.map (native)
npm ERR!     at replaceXRanges (/usr/local/Cellar/npm/0.2.11-5/libexec/lib/utils/semver.js:84:17)
npm ERR!     at Array.map (native)
npm ERR!     at toComparators (/usr/local/Cellar/npm/0.2.11-5/libexec/lib/utils/semver.js:66:8)
npm ERR!     at Object.validRange (/usr/local/Cellar/npm/0.2.11-5/libexec/lib/utils/semver.js:138:11)
npm ERR!     at testEngine (/usr/local/Cellar/npm/0.2.11-5/libexec/lib/utils/read-json.js:218:44)
npm ERR!     at /usr/local/Cellar/npm/0.2.11-5/libexec/lib/utils/read-json.js:159:10
npm ERR! Report this *entire* log at 
npm ERR! or email it to 
npm ERR! Just tweeting a tiny part of the error will not be helpful.
npm info range timespan@2.x.x
npm not ok

1 个答案:

答案 0 :(得分:2)

hooks-js有一个损坏的package.json文件。

"engines": {
  "node": ">=0.4.x"
},

基本上hooks-js表示它适用于任何版本的节点> = 0.4。这是愚蠢的,它不是完全未来的证明,它不可能。

安装在过去的某个时刻工作的原因可能是这是对npmjs的一个新验证。

另一种解决方法是使用旧版本的npm或手动安装hooks-js。

更好的解决方法是向作者投诉。离开an issue