I have been trying to run it, but I get an error when trying to run it.
Code:
Error: Cannot find module '/tmp/.org.chromium.Chromium.yCnfi2/node_modules/gamepad/build/gamepad/v1.0.2/Release/node-webkit-v0.10.5-linux-x64/gamepad.node'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:273:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/tmp/.org.chromium.Chromium.yCnfi2/node_modules/gamepad/gamepad.js:4:15)
at Module._compile (module.js:454:26)
at Object.Module._extensions..js (module.js:472:10)
at Module.load (module.js:354:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:362:17)
I thought that this might indicate that I needed to build and install the node-gamepad referenced in the README, but following the instructions for it results in the following error:
Code:
[christian@C-Arch gamepad]$ ./node_modules/node-pre-gyp/bin/node-pre-gyp build --runtime=node-webkit --target=0.8.6
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.5.31
node-pre-gyp info using node@0.10.33 | linux | x64
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'nw-gyp configure build --name=gamepad --configuration=Release --module_name=gamepad --version=1.0.2 --major=1 --patch=2 --runtime=node-webkit --node_abi=node-webkit-v0.8.6 --target=0.8.6 --platform=linux --target_platform=linux --arch=x64 --target_arch=x64 --module_main=gamepad.js --host=https://node-gamepad.s3.amazonaws.com/ --module_path=/home/christian/OSDS/DriverStation.js/node_modules/gamepad/build/gamepad/v1.0.2/Release/node-webkit-v0.8.6-linux-x64 --module=/home/christian/OSDS/DriverStation.js/node_modules/gamepad/build/gamepad/v1.0.2/Release/node-webkit-v0.8.6-linux-x64/gamepad.node --remote_path=./gamepad/v1.0.2/Release/ --package_name=node-webkit-v0.8.6-linux-x64.tar.gz --staged_tarball=build/stage/gamepad/v1.0.2/Release/node-webkit-v0.8.6-linux-x64.tar.gz --hosted_path=https://node-gamepad.s3.amazonaws.com/gamepad/v1.0.2/Release/ --hosted_tarball=https://node-gamepad.s3.amazonaws.com/gamepad/v1.0.2/Release/node-webkit-v0.8.6-linux-x64.tar.gz' (Error: spawn ENOENT)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/christian/OSDS/DriverStation.js/node_modules/gamepad/node_modules/node-pre-gyp/lib/util/compile.js:70:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:95:17)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:808:12)
node-pre-gyp ERR! System Linux 3.17.1-1-ARCH
node-pre-gyp ERR! command "node" "/home/christian/OSDS/DriverStation.js/node_modules/gamepad/node_modules/node-pre-gyp/bin/node-pre-gyp" "build" "--runtime=node-webkit" "--target=0.8.6"
node-pre-gyp ERR! cwd /home/christian/OSDS/DriverStation.js/node_modules/gamepad
node-pre-gyp ERR! node -v v0.10.33
node-pre-gyp ERR! node-pre-gyp -v v0.5.31
node-pre-gyp ERR! not ok
Failed to execute 'nw-gyp configure build --name=gamepad --configuration=Release --module_name=gamepad --version=1.0.2 --major=1 --patch=2 --runtime=node-webkit --node_abi=node-webkit-v0.8.6 --target=0.8.6 --platform=linux --target_platform=linux --arch=x64 --target_arch=x64 --module_main=gamepad.js --host=https://node-gamepad.s3.amazonaws.com/ --module_path=/home/christian/OSDS/DriverStation.js/node_modules/gamepad/build/gamepad/v1.0.2/Release/node-webkit-v0.8.6-linux-x64 --module=/home/christian/OSDS/DriverStation.js/node_modules/gamepad/build/gamepad/v1.0.2/Release/node-webkit-v0.8.6-linux-x64/gamepad.node --remote_path=./gamepad/v1.0.2/Release/ --package_name=node-webkit-v0.8.6-linux-x64.tar.gz --staged_tarball=build/stage/gamepad/v1.0.2/Release/node-webkit-v0.8.6-linux-x64.tar.gz --hosted_path=https://node-gamepad.s3.amazonaws.com/gamepad/v1.0.2/Release/ --hosted_tarball=https://node-gamepad.s3.amazonaws.com/gamepad/v1.0.2/Release/node-webkit-v0.8.6-linux-x64.tar.gz' (Error: spawn ENOENT)
Is there anything I am missing here? Other dependencies? This was done on Arch Linux, with node-webkit compiled from the AUR.