thedjpetersen / subway

ABANDONED - A web based IRC client
1.47k stars 152 forks source link

Error install #278

Closed Myster62 closed 10 years ago

Myster62 commented 10 years ago

Hello,

I error to subway (sorry i speek french )

sqlite3@2.1.19 install /root/node_modules/jugglingdb-sqlite3/node_modules/sqlite3 node build.js

[sqlite3]: Checking for http://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.1.a-node-v13-linux-x64.tar.gz [sqlite3]: http://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.1.a-node-v13-linux-x64.tar.gz not found, falling back to source compile (Error: Server returned 404) 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:65:16) gyp ERR! stack at Object.self.commands.(anonymous function) as install gyp ERR! stack at getNodeDir (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:150:20) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:93:9 gyp ERR! stack at ChildProcess.exithandler (child_process.js:694:7) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:101:17) gyp ERR! stack at maybeClose (child_process.js:808:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:875:5) gyp ERR! System Linux 3.8.13-xxxx-grs-ipv6-64-vps gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "jugglingdb-sqlite3" gyp ERR! cwd /root/node_modules/jugglingdb-sqlite3/node_modules/sqlite3 gyp ERR! node -v v0.11.10-pre gyp ERR! node-gyp -v v0.12.1 gyp ERR! not ok [sqlite3]: Error: Failed to execute 'node-gyp rebuild jugglingdb-sqlite3' (1) npm ERR! sqlite3@2.1.19 install: node build.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sqlite3@2.1.19 install script. npm ERR! This is most likely a problem with the sqlite3 package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node build.js npm ERR! You can get their info via: npm ERR! npm owner ls sqlite3 npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.8.13-xxxx-grs-ipv6-64-vps npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "jugglingdb-sqlite3" npm ERR! cwd /root npm ERR! node -v v0.11.10-pre npm ERR! npm -v 1.3.17 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /root/npm-debug.log npm ERR! not ok code 0 root@vps41617:~# ^C root@vps41617:~#

Thank's for help :)

VictorioBerra commented 10 years ago

Same error here.

badosu commented 10 years ago

Hello @LordWingZero, @Myster62 !

How are you installing? Could you copy and paste the commands here?

Which platforms do you use?

Thanks for the report!

VictorioBerra commented 10 years ago

After the holidays ill spin up a fresh VM with the latest Ubuntu and test your install instructions and I will do the same with a Mint 16 install and report back.

VictorioBerra commented 10 years ago

Okay.

Fresh Ubuntu VM. I installed NODE and NPM with this tutorial: http://ariejan.net/2011/10/24/installing-node-js-and-npm-on-ubuntu-debian/

Then I simply followed the tutorial on this github. There is a problem with this package on newer systems and it appears to be the fault of sqlite3

VictorioBerra commented 10 years ago

This is why: https://github.com/mapbox/node-sqlite3/issues/194 which was 3 months ago. :(

"node-sqlite3 does not currently support node v0.11.x. We will plan to add support for the latest node once v0.12.x is released. So if you want to use this module you will need to stick with the stable node series: v0.10.x."

VictorioBerra commented 10 years ago

Okay I fixed it by installing Node latest 0.10 version (git checkout v0.10.24) and then (npm install sqlite3).

badosu commented 10 years ago

Cool! Thanks @LordWingZero!