[英]npm install jquery fails on node-gyp rebuild
I can't seem to get jquery to install on the latest release of npm/node. 我似乎无法在最新版本的npm / node上安装jquery。 Here's the stack trace: 这是堆栈跟踪:
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
> contextify@0.1.3 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 contextify@0.1.3
I can't seem to get jquery to install on the latest release of npm/node. 我似乎无法在最新版本的npm / node上安装jquery。
The latest releases of Node.JS are v0.8.8 (stable) ( release notes , download ) and v0.9.0 (unstable) . Node.JS的最新版本是v0.8.8(稳定版) ( 发行说明 , 下载 )和v0.9.0(不稳定版) 。
What you're currently running is v0.9.1-pre
-- a development build from the work being done towards a v0.9.1
release. 您当前正在运行的是v0.9.1-pre
- 从正在完成的v0.9.1
版本的工作开发构建。
And, that's the problem: 而且,这就是问题所在:
Error: "pre" versions of node cannot be installed 错误:无法安装节点的“预”版本
The modules you're attempting to install don't support running on a development build. 您尝试安装的模块不支持在开发版本上运行。 So, you'll have to decide on a release version to try them with. 因此,您必须决定发布版本才能尝试使用它们。
You may also want to make note of the versioning scheme that Node.JS uses. 您可能还想记下Node.JS使用的版本控制方案 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.