Go Back   Smogon Community > Site & Projects > Pokémon Showdown!
Register FAQ Social Groups Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
Old Feb 16th, 2013, 2:46:08 PM   #1
Kebabier
 
Kebabier's Avatar
 
Join Date: Oct 2011
Posts: 11
Default Installing Showdown on Ubuntu (12.10)

Helloz,

I'm running on ubuntu and i would like to setup PS.
I trying to install rpm, it's ok. Then, I run this command:

Quote:
# node app.js
and i get this error:

Quote:
root@taytayclicli-MS-7640:/var/www/PS# node app.js 8000
NEW LOBBY: lobby

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object #<Object> has no method 'fork'
at Object.<anonymous> (/var/www/PS/verifier.js:14:39)
at Module._compile (module.js:411:26)
at Object..js (module.js:417:10)
at Module.load (module.js:343:31)
at Function._load (module.js:302:12)
at require (module.js:355:19)
at Object.<anonymous> (/var/www/PS/app.js:359:12)
at Module._compile (module.js:411:26)
at Object..js (module.js:417:10)
at Module.load (module.js:343:31)
What's the problem ?

Regards.
Kebabier is offline   Reply With Quote
Old Feb 20th, 2013, 11:30:06 AM   #2
Kebabier
 
Kebabier's Avatar
 
Join Date: Oct 2011
Posts: 11
Default

up
Kebabier is offline   Reply With Quote
Old Feb 20th, 2013, 5:25:41 PM   #3
Zarel*
>> BEGIN POSTBIT
is a member of the Smogon Site Staffis a Battle Server Administratoris a Super Moderatoris a Programmer
 
Zarel's Avatar
 
Super Moderator
Join Date: Aug 2011
Posts: 1,170
>> END POSTBIT
Default

It sounds like you're using an old version of Node. Try installing a newer version?
__________________
Pokemon Showdown | Replay player | No, I am not impressed that you know that my name is Guangcong Luo. The PS website says "Copyright Guangcong Luo" at the bottom, ffs.
Zarel is offline   Reply With Quote
Old Feb 26th, 2013, 9:01:20 AM   #4
Kebabier
 
Kebabier's Avatar
 
Join Date: Oct 2011
Posts: 11
Default

No, I have the latest version, but I tried to reinstall it, it still doesn't work :/
Kebabier is offline   Reply With Quote
Old Feb 26th, 2013, 11:06:26 AM   #5
Zarel*
>> BEGIN POSTBIT
is a member of the Smogon Site Staffis a Battle Server Administratoris a Super Moderatoris a Programmer
 
Zarel's Avatar
 
Super Moderator
Join Date: Aug 2011
Posts: 1,170
>> END POSTBIT
Default

Could you tell me what version you have? You can check with:

node --version
__________________
Pokemon Showdown | Replay player | No, I am not impressed that you know that my name is Guangcong Luo. The PS website says "Copyright Guangcong Luo" at the bottom, ffs.
Zarel is offline   Reply With Quote
Old Feb 26th, 2013, 3:17:49 PM   #6
Kebabier
 
Kebabier's Avatar
 
Join Date: Oct 2011
Posts: 11
Default

Oh I found what it doesn't work !

My problem is solved, because the command is not "node app.js 8000" but "nodejs app.js 8000".

Thank you so much ;)

Last edited by Kebabier; Mar 20th, 2013 at 3:34:42 PM.
Kebabier is offline   Reply With Quote
Reply Smogon Community > Site & Projects > Pokémon Showdown!

« Previous Thread | Next Thread »
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 1:14:22 AM.