Open iamdriz opened 9 years ago
Strange, I will take a look at it this afternoon.
@rdepena Any updates? Thanks
hey @iamdriz, tried last night and was not able to reproduce on two different machines, I think this might be a issue with NPM being in a bad state, can you try to delete this folder: "/Users/cameron/node_modules/dualshock-controller" and either retry or check who owns the node installation: http://stackoverflow.com/questions/16151018/npm-throws-error-without-sudo/24404451#24404451
@iamdriz check out this issue, seems like its a similar problem:
Hey @iamdriz is this still an issue ?
This is also an issue for me. I installed node using sudo apt-get install nodejs
and when I try to install dualshock with npm install dualshock-controller
it gives me this error
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-45-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "configure" "build" "install"
gyp ERR! cwd /home/olumide/node_modules/dualshock-controller/node_modules/node-hid
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! weird error 1
npm ERR! not ok code 0
Hey @0lumide what flavor of linux and version of node are you using ?
Hey @0lumide, looks like I the issue is one of the modules I am using does not work with never version of node, there is already a pull request to fix it: https://github.com/node-hid/node-hid/pull/69
I would recommend using https://github.com/creationix/nvm in the meantime, I will keep an eye on the PR.
@rdepena Ah thanks! I'll try using nvm
Just incase anybody has this problem, it appears like I was missing a depeendecy for node-hid node-hid dependecies. Particularly libusb
Is this still an issue? @iamdriz @0lumide
When doing:
npm install dualshock-controller
I get the following error (copied from log file):
Even if I do:
sudo npm install dualshock-contoller
it breaks