vampserv / node-poker-stack Goto Github PK
View Code? Open in Web Editor NEWnode.js based poker game server and HTML5 web client
node.js based poker game server and HTML5 web client
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
\Desktop\node-poker-stack\game-server\node_modules\heapdump>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=2013',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\user\\Desktop\\node-poker-stack\\game-server\\node_modules\\heapdump\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\user\\.node-gyp\\6.9.1\\include\\node\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\user\\.node-gyp\\6.9.1',
gyp info spawn args '-Dnode_gyp_dir=C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\\Users\\user\\Desktop\\node-poker-stack\\game-server\\node_modules\\heapdump',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\Users\\user\\Desktop\\node-poker-stack\\game-server\\node_modules\\heapdump\\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Сборка проектов в этом решении по одному. Чтобы включить параллельную сборку, добавьте параметр "/m".
heapdump.cc
platform-win32.cc
win_delay_load_hook.cc
..\src\heapdump.cc(158): error C2664: 'const v8::HeapSnapshot *v8::HeapProfiler::TakeHeapSnapshot(v8::ActivityControl *,v8::HeapProfiler
::ObjectNameResolver *)' : cannot convert argument 1 from 'v8::Local<v8::String>' to 'v8::ActivityControl *' [C:\Users\user\Desktop\node-
poker-stack\game-server\node_modules\heapdump\build\heapdump.vcxproj]
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\user\Desktop\node-poker-stack\game-server\node_modules\heapdump
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm info lifecycle [email protected]~install: Failed to exec install script
[email protected] C:\Users\user\Desktop\node-poker-stack\game-server
`-- (empty)
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-d"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the heapdump package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs heapdump
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls heapdump
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\user\Desktop\node-poker-stack\game-server\npm-debug.log
npm ERR! code 1
Could you please help me to fix this issue?
has issues with installing and cannot run server. heres the debug file:
npm-debug.zip
I installed on my system but it is showing only login button when I clicked not the login screen appearing where is my mistake?
I setup everything and got this code console error:
[ERROR] console - Caught exception: TypeError: Cannot read property 'indexOf' of undefined
at Server.verify (/home/ubuntu/node-poker-stack-master/node_modules/engine.io/lib/server.js:132:25)
at Server.handleRequest (/home/ubuntu/node-poker-stack-master/node_modules/engine.io/lib/server.js:205:8)
at Server. (/home/ubuntu/node-poker-stack-master/node_modules/engine.io/lib/server.js:432:12)
at Server. (/home/ubuntu/node-poker-stack-master/node_modules/socket.io/lib/index.js:275:16)
at Server.emit (events.js:198:13)
at parserOnIncoming (_http_server.js:691:12)
at HTTPParser.parserOnHeadersComplete (_http_common.js:111:17)
Any help would be much appreciated
../src/heapdump.cc:158:74: error: no matching function for call to ‘v8::HeapProfiler::TakeHeapSnapshot(v8::Local<v8::String>)’
isolate->GetHeapProfiler()->TakeHeapSnapshot(String::Empty(isolate)));
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:191:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.15.0-88-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/attila/git/node-poker-stack/game-server/node_modules/heapdump
gyp ERR! node -v v10.19.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
245 warn [email protected] No repository field.
246 warn [email protected] No license field.
247 verbose stack Error: [email protected] install: `node-gyp rebuild`
247 verbose stack Exit status 1
247 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
247 verbose stack at EventEmitter.emit (events.js:198:13)
247 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
247 verbose stack at ChildProcess.emit (events.js:198:13)
247 verbose stack at maybeClose (internal/child_process.js:982:16)
247 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
248 verbose pkgid [email protected]
249 verbose cwd /home/attila/git/node-poker-stack/game-server
250 verbose Linux 4.15.0-88-generic
251 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
252 verbose node v10.19.0
253 verbose npm v6.13.4
254 error code ELIFECYCLE
255 error errno 1
256 error [email protected] install: `node-gyp rebuild`
256 error Exit status 1
257 error Failed at the [email protected] install script.
257 error This is probably not a problem with npm. There is likely additional logging output above.
258 verbose exit [ 1, true ]
(END)
I am getting gyp build errors. I am using the latest nvm and node versions. Here is attached error log. can you suggest how to fix?
2018-10-13T16_58_16_040Z-debug.log
Parser.prototype.proto = EventEmitter.prototype;
^
TypeError: Cannot read property 'prototype' of undefined
Hi , I run command in macosx
$ npm install pomelo -g
and i see error log , not install
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
Why quads is the best hand evaluated?
Need improve the script to evalute straight flush as the best hand.
Since the code was updated 5 years ago - What node/npm versions support this code?
Getting this error message after requesting localhost
my current versions are described bellow.
System Win 7 (64bit) | Firefox Browser 74.0 (64-bit)
[email protected] [email protected] [email protected]
game-server
"dependencies": { "crc": "0.2.0", "hoyle": "^0.2.2", "node-uuid": "^1.4.1", "pomelo": "2.2.7", "pomelo-logger": "^0.1.6", "redis": "^0.12.1" }
web-server
"dependencies": { "express": "3.4.0" }
[ERROR] console - Caught exception: TypeError: Cannot read property 'indexOf' of undefined at Server.verify (D:\S G ZALA\Test Code\node-poker-stack\game-server\node_modules\engine.io\lib\server.js:132:25) at Server.handleRequest (D:\S G ZALA\Test Code\node-poker-stack\game-server\node_modules\engine.io\lib\server.js:205:8) at Server.<anonymous> (D:\S G ZALA\Test Code\node-poker-stack\game-server\node_modules\engine.io\lib\server.js:432:12) at Server.<anonymous> (D:\S G ZALA\Test Code\node-poker-stack\game-server\node_modules\pomelo\node_modules\socket.io\lib\index.js:275:16) at Server.emit (events.js:198:13) at parserOnIncoming (_http_server.js:691:12) at HTTPParser.parserOnHeadersComplete (_http_common.js:111:17)
Can we get the app running with the newest node version? I am willing to pay for that.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.