ether / etherpad-lite

Etherpad: A modern really-real-time collaborative document editor.
http://docs.etherpad.org/
Apache License 2.0
16.48k stars 2.84k forks source link

Gentoo Install Fails: Node.js "throw" - no such module #225

Closed jlpoole closed 12 years ago

jlpoole commented 12 years ago

I think I had etherpad-lite working on this machine before, if not, then it was Etherpad.

atom etherpad-lite # pwd /usr/local/src/etherpad-lite atom etherpad-lite # bin/installDeps.sh

node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: No such module at Object. (/usr/lib/node_modules/npm/lib/utils/config-defs.js:5:21) at Module._compile (module.js:432:26) at Object..js (module.js:450:10) at Module.load (module.js:351:31) at Function._load (module.js:310:12) at Module.require (module.js:357:17) at require (module.js:368:17) at Object. (/usr/lib/node_modules/npm/lib/utils/ini.js:40:18) at Module._compile (module.js:432:26) at Object..js (module.js:450:10) Ensure that all dependencies are up to date...

node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: No such module at Object. (/usr/lib/node_modules/npm/lib/utils/config-defs.js:5:21) at Module._compile (module.js:432:26) at Object..js (module.js:450:10) at Module.load (module.js:351:31) at Function._load (module.js:310:12) at Module.require (module.js:357:17) at require (module.js:368:17) at Object. (/usr/lib/node_modules/npm/lib/utils/ini.js:40:18) at Module._compile (module.js:432:26) at Object..js (module.js:450:10) atom etherpad-lite # eix nodejs [D] net-libs/nodejs Available versions: (~)0.4.11!t (~)0.4.12!t Installed versions: 0.6.0!t(16:33:07 11/22/11) Homepage: http://nodejs.org/ Description: Evented IO for V8 Javascript

atom etherpad-lite # git pull Already up-to-date. atom etherpad-lite # date Tue Nov 22 16:45:19 PST 2011 atom etherpad-lite # uname -a Linux atom 2.6.36-gentoo-r5 #1 SMP Fri Jan 21 16:47:09 PST 2011 i686 Intel(R) Atom(TM) CPU D525 @ 1.80GHz GenuineIntel GNU/Linux atom etherpad-lite #

Pita commented 12 years ago

do node --version npm --version please

jlpoole commented 12 years ago

atom etherpad-lite # node --version v0.6.0 atom etherpad-lite # npm --version

node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: No such module at Object. (/usr/lib/node_modules/npm/lib/utils/config-defs.js:5:21) at Module._compile (module.js:432:26) at Object..js (module.js:450:10) at Module.load (module.js:351:31) at Function._load (module.js:310:12) at Module.require (module.js:357:17) at require (module.js:368:17) at Object. (/usr/lib/node_modules/npm/lib/utils/ini.js:40:18) at Module._compile (module.js:432:26) at Object..js (module.js:450:10) atom etherpad-lite #

Pita commented 12 years ago

yeah you're npm is broken don't know if gentoo has a npm package, but if not try that curl http://npmjs.org/install.sh | sh

jlpoole commented 12 years ago

Your assessment was correct and your solution worked. Thank you; well done!

I'll post in the Gentoo Forum, looks like node.js is not a well known technology there.

For posterity: atom src # curl http://npmjs.org/install.sh | sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 7184 100 7184 0 0 21769 0 --:--:-- --:--:-- --:--:-- 47893 tar=/bin/tar version: tar (GNU tar) 1.23 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason. fetching: http://registry.npmjs.org/npm/-/npm-1.0.106.tgz 0.6.0 1.0.106 cleanup prefix=/usr

All clean! /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js /usr/bin/npm_g -> /usr/lib/node_modules/npm/bin/npm-cli.js /usr/bin/npm-g -> /usr/lib/node_modules/npm/bin/npm-cli.js npm@1.0.106 /usr/lib/node_modules/npm It worked atom src # atom etherpad-lite # bin/installDeps.sh Ensure that all dependencies are up to date... npm WARN log4js@0.3.9 package.json: bugs['web'] should probably be bugs['url'] npm WARN gzip@0.1.0 package.json: bugs['web'] should probably be bugs['url'] async@0.1.15 ./node_modules/async gzip@0.1.0 ./node_modules/gzip log4js@0.3.9 ./node_modules/log4js formidable@1.0.7 ./node_modules/formidable uglify-js@1.1.1 ./node_modules/uglify-js clean-css@0.2.4 ./node_modules/clean-css âââ optimist@0.1.9 express@2.5.0 ./node_modules/express âââ mime@1.2.4 âââ mkdirp@0.0.7 âââ qs@0.4.0 âââ connect@1.7.3 socket.io@0.8.7 ./node_modules/socket.io âââ policyfile@0.0.4 âââ redis@0.6.7 âââ socket.io-client@0.8.7 ueberDB@0.1.3 ./node_modules/ueberDB âââ channels@0.0.2 âââ dirty@0.9.4 âââ mysql@0.9.4 joose@3.50.0 ./node_modules/joose âââ temp@0.2.0 âââ optimist@0.2.8 (wordwrap@0.0.2) âââ detective@0.0.3 Ensure jQuery is downloaded and up to date... bin/installDeps.sh: line 54: [: =: unary operator expected % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 94020 100 94020 0 0 255k 0 --:--:-- --:--:-- --:--:-- 278k Clear minfified cache... ensure custom css/js files are created... atom etherpad-lite #

JohnMcLear commented 12 years ago

Try to follow this:

http://mclear.co.uk/2011/08/01/install-etherpad-lite-on-ubuntu/

let us know where you get stuck.

You should be able to run it with bin/run.sh

-----Original Message----- From: jlpoole [mailto:reply@reply.github.com] Sent: 23 November 2011 00:58 To: John McLear Subject: [etherpad-lite] Gentoo Install Fails: Node.js "throw" - no such module (#225)

I think I had etherpad-lite working on this machine before, if not, then it was Etherpad.

atom etherpad-lite # pwd /usr/local/src/etherpad-lite atom etherpad-lite # bin/installDeps.sh

node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: No such module at Object. (/usr/lib/node_modules/npm/lib/utils/config-defs.js:5:21) at Module._compile (module.js:432:26) at Object..js (module.js:450:10) at Module.load (module.js:351:31) at Function._load (module.js:310:12) at Module.require (module.js:357:17) at require (module.js:368:17) at Object. (/usr/lib/node_modules/npm/lib/utils/ini.js:40:18) at Module._compile (module.js:432:26) at Object..js (module.js:450:10) Ensure that all dependencies are up to date...

node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: No such module at Object. (/usr/lib/node_modules/npm/lib/utils/config-defs.js:5:21) at Module._compile (module.js:432:26) at Object..js (module.js:450:10) at Module.load (module.js:351:31) at Function._load (module.js:310:12) at Module.require (module.js:357:17) at require (module.js:368:17) at Object. (/usr/lib/node_modules/npm/lib/utils/ini.js:40:18) at Module._compile (module.js:432:26) at Object..js (module.js:450:10) atom etherpad-lite # eix nodejs [D] net-libs/nodejs Available versions: (~)0.4.11!t (~)0.4.12!t Installed versions: 0.6.0!t(16:33:07 11/22/11) Homepage: http://nodejs.org/ Description: Evented IO for V8 Javascript

atom etherpad-lite # git pull Already up-to-date. atom etherpad-lite # date Tue Nov 22 16:45:19 PST 2011 atom etherpad-lite # uname -a Linux atom 2.6.36-gentoo-r5 #1 SMP Fri Jan 21 16:47:09 PST 2011 i686 Intel(R) Atom(TM) CPU D525 @ 1.80GHz GenuineIntel GNU/Linux atom etherpad-lite #


Reply to this email directly or view it on GitHub: https://github.com/Pita/etherpad-lite/issues/225 This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of the organisation from which this email originated. If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone. Please contact the sender if you believe you have received this email in error. This email was sent by School Email - Safe Webmail and Hosted Email for Schools;/p>

cronopio commented 12 years ago

I think the better way its using locally, clone the repo, then npm install then bin/run.sh

Pita commented 12 years ago

installDeps does more than npm install. Anyway it works now for him, this issue is closed

cronopio commented 12 years ago

@Pita yeah you rigth, check for node and npm versions are very important, im sorry the bump

Zammy commented 12 years ago

I have the same issue. But reinstall does not work. I am on mac os x 10.7. Any clues?