2012-08-24 19 views
5

npm/nodeの最新リリースにjqueryをインストールできないようです。ここでスタックトレースです:npm install jqueryがnode-gyp rebuildで失敗する

npm http GET https://registry.npmjs.org/jquery 
npm http 304 https://registry.npmjs.org/jquery 
npm http GET https://registry.npmjs.org/jsdom 
npm http GET https://registry.npmjs.org/htmlparser/1.7.6 
npm http GET https://registry.npmjs.org/xmlhttprequest 
npm http GET https://registry.npmjs.org/location/0.0.1 
npm http GET https://registry.npmjs.org/navigator 
npm http 304 https://registry.npmjs.org/jsdom 
npm http 304 https://registry.npmjs.org/xmlhttprequest 
npm http 304 https://registry.npmjs.org/location/0.0.1 
npm http 304 https://registry.npmjs.org/htmlparser/1.7.6 
npm http 304 https://registry.npmjs.org/navigator 
npm http GET https://registry.npmjs.org/cssom 
npm http GET https://registry.npmjs.org/contextify 
npm http GET https://registry.npmjs.org/request 
npm http 304 https://registry.npmjs.org/contextify 
npm http 304 https://registry.npmjs.org/cssom 
npm http 304 https://registry.npmjs.org/request 
npm http GET https://registry.npmjs.org/bindings 
npm http 304 https://registry.npmjs.org/bindings 

> [email protected] install /root/node_modules/jquery/node_modules/jsdom/node_modules/contextify 
> node-gyp rebuild 

gyp ERR! configure error 
gyp ERR! stack Error: "pre" versions of node cannot be installed, use the --nodedir flag instead 
gyp ERR! stack  at install (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:68:16) 
gyp ERR! stack  at Object.commands.forEach.self.commands.(anonymous function) [as install] (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js:56:37) 
gyp ERR! stack  at getNodeDir (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:185:20) 
gyp ERR! stack  at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:105:9 
gyp ERR! stack  at ChildProcess.exithandler (child_process.js:534:7) 
gyp ERR! stack  at ChildProcess.EventEmitter.emit (events.js:91:17) 
gyp ERR! stack  at maybeClose (child_process.js:634:16) 
gyp ERR! stack  at Socket.ChildProcess.spawn.stdin (child_process.js:806:11) 
gyp ERR! stack  at Socket.EventEmitter.emit (events.js:88:17) 
gyp ERR! stack  at Socket._destroy.destroyed (net.js:356:10) 
gyp ERR! System Linux 2.6.32-24-server 
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 
gyp ERR! cwd /root/node_modules/jquery/node_modules/jsdom/node_modules/contextify 
gyp ERR! node -v v0.9.1-pre 
gyp ERR! node-gyp -v v0.6.5 
gyp ERR! not ok 
npm WARN optional dep failed, continuing [email protected] 

答えて

4

I can't seem to get jquery to install on the latest release of npm/node.

のNode.jsの最新リリースはv0.8.8 (stable)release notesdownload)とv0.9.0 (unstable)です。

あなたが現在実行しているのはv0.9.1-preです。これは、作業から行われた開発ビルドv0.9.1リリースです。

そして、それが問題だ:

Error: "pre" versions of node cannot be installed

をインストールしようとしているモジュールが開発ビルドで実行をサポートしていません。だから、あなたはそれらを試してリリース版を決定する必要があります。

Node.JSが使用するversioning schemeを書き留めておきたい場合もあります。

+2

私はnode 0.8.6 stableにjqueryをインストールしようとしているときにgypに問題がありますか? 'gyp ERR!スタックエラー:見つからない:make' ... 'gyp ERR! Fのスタック(/usr/local/lib/node_modules/npm/node_modules/which/which.js:43:28) ' – zanona

+1

Hmmm、ノード0.8.8でクリーンインストールしました。今はうまくいきました。何かの罪悪感:) – zanona

+0

奇妙な...私は0.8.xにあったと確信していた。どうも! – occasl

関連する問題