vampserv / node-poker-stack

node.js based poker game server and HTML5 web client
132 stars 98 forks source link

module.js not found #2

Open avjiang opened 8 years ago

avjiang commented 8 years ago

Hi, i have some issue in installing the package. When i run command prompt in my windows with command node app.js after i cd to the directory, the module.js is not found. i am new to node.js . can you please explain to me what is wrong? thank you

talatabao commented 8 years ago

I also encountered the same error.

image

please support! Thanks!

talatabao commented 8 years ago

I've run this by running the file 'npm-install.bat' before.

but meet new problems as it did not show anything, bug right line: xhr.send (null); socket.io.js

image

Thanks!

MathGasciolli commented 7 years ago

I have the same problem... Did run the script npm-install.sh before... It says "can't find the module powelo".

And I have the same localhost page as talatabao :(

telostia commented 7 years ago

I have the same problem: It says "can't find the module powelo".

I think this build requires the old version of npm. im gona try node.js 4.4.1 since it is around 2015.. hope it works...

MathGasciolli commented 7 years ago

Okay thanks for the answer, tell me if you can make it work ! :)

Have a good day


From: telostia notifications@github.com Sent: Saturday, August 12, 2017 1:08:03 AM To: vampserv/node-poker-stack Cc: mathieu gasciolli; Comment Subject: Re: [vampserv/node-poker-stack] module.js not found (#2)

I have the same problem: It says "can't find the module powelo".

I think this build requires the old version of npm. im gona try node.js 4.4.1 since it is around 2015.. hope it works...

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/vampserv/node-poker-stack/issues/2#issuecomment-321937598, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ANr_hTURl_YWB5ly0WKIgjZEBhSjgOkvks5sXN7TgaJpZM4IaUJ1.

telostia commented 7 years ago

it seems when i tried a very early version of node.js. installed without errors... i went back to node.js version 0.10.25 which comes with npm version 1.3.24.

however, when I tried to run gameserver/app i get errors:

image

telostia commented 7 years ago

Then I try to tried to install again and when I tried running I get 👍 image

Can the dev please tell me which Node.js or NPM version works or point out whats the problem with this. I really want to get into knowing how this poker server works. thanks.

telostia commented 7 years ago

Ok. I got it to work. For anyone that's interested. heres the instructions how to run it(at least how I did it): Before you begin uninstall all previous node.js or npm on system and even clear caches or delete node directory just to be safe.

  1. download latest node.js(for me its x64 windows so i downloaded 6.11.2) and install it on your system.
  2. clone project by typing git clone https://github.com/vampserv/node-poker-stack.git
  3. cd node-poker-stack:
  4. Install pomelo globally(on windows it installs to C:\Users[yourusername]\AppData\Roaming\npm\node_modules): npm install -g pomelo
  5. install game: sh npm-install.sh
  6. run webserver: node web-server/app
  7. open another bash and run game server: cd game-server pomelo start
  8. open web browser and load page: localhost:3002

9 If everyone went well. try to register and user name and password and u will be able to login.

My result just to prove that it's working:

image

Have fun learning!

Victor1811 commented 5 years ago

@telostia I get error at 7. at :pomelo start :

pomelo start
internal/modules/cjs/loader.js:584
throw err;
^ Error: Cannot find module 'C:\Users\Victor\Desktop\pomelo\bin\pomelo'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)

anybody has any idea? followed all your steps!