i try to run some samples i found on the net which is old , any way i try to do :
npm install
but i get some of errors , looking at the builderror.log i see :
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 (D:\dev\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:204:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "D:\\dev\\nodejs\\node.exe" "D:\\dev\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\dev\cpp\server\RealtimeMultiplayerNodeJs-master\RealtimeMultiplayerNodeJs-master\node_modules\ws
gyp ERR! node -v v6.2.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
as i see there is some kind of version problem , between the node and node-gyp but how can i fix it ? Thanks
UODATE
After running the command :
npm install -g node-gyp@latest
i got no error , but when running the client in the browser i saw that im getting this error :
http://127.0.0.1:8000/node_modules/socket.io/node_modules/socket.io-client/dist/socket.io.js Failed to load resource: the server responded with a status of 404 (File not found)
when looking at the \node_modules\ i do see the file :
\node_modules\socket.io-client\dist\socket.io.js
Package.json:
{
"name": "RealtimeMultiplayerNodeJs",
"version": "1.1.1",
"description": "RealtimeMultiplayerNodeJS is a framework specifically for building HTML5 multiplayer games with the Client / Server model",
"main": "js/BubbleDots/server.js",
"dependencies": {
"socket.io": "~0.9.16"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs.git"
},
"author": "Mario Gonzalez",
"license": "MIT",
"bugs": {
"url": "https://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs/issues"
},
"homepage": "https://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs"
}