Closed waltomatt closed 11 years ago
This is not an issue with Protobuf but a design decision with node-gyp not allowing installations of native modules when running on pre versions of Node.
Easiest way to fix this is to run on a stable version of node (v0.10.5).
See this for more information: https://github.com/TooTallNate/node-gyp/wiki/Error%3A-%22pre%22-versions-of-node-cannot-be-installed
Ah thanks a lot for the solution, greatly appreciate it!
I've tried installing on a debian machine, and an ubuntu machine and they both output the same error and refuse to install
npm http GET https://registry.npmjs.org/protobuf npm http 304 https://registry.npmjs.org/protobuf npm WARN engine protobuf@0.8.6: wanted: {"node":">= 0.8.0 < 0.9.0"} current: {"node":"v0.11.2-pre","npm":"1.2.20"})
protobuf@0.8.6 install /opt/websteam/node_modules/protobuf node-gyp rebuild
gyp ERR! configure error gyp ERR! stack Error: "pre" versions of node cannot be installed, use the --nodedir f gyp ERR! stack at install (/usr/local/lib/node_modules/npm/node_modules/node-gyp/ gyp ERR! stack at Object.self.commands.(anonymous function) [as install] (/usr/lo gyp ERR! stack at getNodeDir (/usr/local/lib/node_modules/npm/node_modules/node-g gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/confi gyp ERR! stack at ChildProcess.exithandler (child_process.js:630:7) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:100:17) gyp ERR! stack at maybeClose (child_process.js:730:16) gyp ERR! stack at Socket. (child_process.js:943:11)
gyp ERR! stack at Socket.EventEmitter.emit (events.js:97:17)
gyp ERR! stack at Pipe.close (net.js:455:12)
gyp ERR! System Linux 2.6.32-042stab072.10
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/no
gyp ERR! cwd /opt/websteam/node_modules/protobuf
gyp ERR! node -v v0.11.2-pre
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0