{"action":"created","issue":{"url":"https://api.github.com/repos/damianxd/VeraLink/issues/1","labels_url":"https://api.github.com/repos/damianxd/VeraLink/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/damianxd/VeraLink/issues/1/comments","events_url":"https://api.github.com/repos/damianxd/VeraLink/issues/1/events","html_url":"https://github.com/damianxd/VeraLink/issues/1","id":121128500,"number":1,"title":"npm install errors","user":{"login":"alexus1211","id":16215643,"avatar_url":"https://avatars.githubusercontent.com/u/16215643?v=3","gravatar_id":"","url":"https://api.github.com/users/alexus1211","html_url":"https://github.com/alexus1211","followers_url":"https://api.github.com/users/alexus1211/followers","following_url":"https://api.github.com/users/alexus1211/following{/other_user}","gists_url":"https://api.github.com/users/alexus1211/gists{/gist_id}","starred_url":"https://api.github.com/users/alexus1211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexus1211/subscriptions","organizations_url":"https://api.github.com/users/alexus1211/orgs","repos_url":"https://api.github.com/users/alexus1211/repos","events_url":"https://api.github.com/users/alexus1211/events{/privacy}","received_events_url":"https://api.github.com/users/alexus1211/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-08T23:55:35Z","updated_at":"2015-12-09T01:51:44Z","closed_at":null,"body":"Hi,\r\nI wanted to give your version of Homebridge a try. unfortunately I was not able to get through the installation process. here's the log:\r\n\r\naleco@aleco-desktop:~/VeraLink$ npm install\r\nnpm WARN package.json VeraLink@0.0.1 No repository field.\r\nnpm WARN package.json fs@0.0.2 No repository field.\r\n \r\n> spawn-sync@1.0.14 postinstall /home/aleco/VeraLink/node_modules/sync-request/node_modules/spawn-sync\r\n> node postinstall\r\n\r\nsh: 1: node: not found\r\nnpm WARN This failure might be due to the use of legacy binary \"node\"\r\nnpm WARN For further explanations, please read\r\n/usr/share/doc/nodejs/README.Debian\r\n \r\nnpm ERR! tar.unpack untar error /home/aleco/.npm/readable-stream/2.0.4/package.tgz\r\nnpm ERR! spawn-sync@1.0.14 postinstall: `node postinstall`\r\nnpm ERR! Exit status 127\r\nnpm ERR! \r\nnpm ERR! Failed at the spawn-sync@1.0.14 postinstall script.\r\nnpm ERR! This is most likely a problem with the spawn-sync package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node postinstall\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls spawn-sync\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! System Linux 4.1.10-v7+\r\nnpm ERR! command \"/usr/bin/nodejs\" \"/usr/bin/npm\" \"install\"\r\nnpm ERR! cwd /home/aleco/VeraLink\r\nnpm ERR! node -v v0.10.25\r\nnpm ERR! npm -v 1.4.21\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! Error: EACCES, open 'npm-debug.log'\r\nnpm ERR!  { [Error: EACCES, open 'npm-debug.log'] errno: 3, code: 'EACCES', path: 'npm-debug.log' }\r\nnpm ERR! \r\nnpm ERR! Please try running this command again as root/Administrator.\r\n\r\nnpm ERR! System Linux 4.1.10-v7+\r\nnpm ERR! command \"/usr/bin/nodejs\" \"/usr/bin/npm\" \"install\"\r\nnpm ERR! cwd /home/aleco/VeraLink\r\nnpm ERR! node -v v0.10.25\r\nnpm ERR! npm -v 1.4.21\r\nnpm ERR! path npm-debug.log\r\nnpm ERR! code EACCES\r\nnpm ERR! errno 3\r\nnpm ERR! stack Error: EACCES, open 'npm-debug.log'\r\n\\\r\n> curve25519@1.1.0 install /home/aleco/VeraLink/node_modules/hap-nodejs/node_modules/curve25519\r\n> node-gyp rebuild\r\n\r\n/bin/sh: 1: node: not found\r\ngyp: Call to 'node -e \"require('nan')\"' returned exit status 127. while trying to load binding.gyp\r\ngyp ERR! configure error \r\ngyp ERR! stack Error: `gyp` failed with exit code: 1\r\ngyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:344:16)\r\ngyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)\r\ngyp ERR! System Linux 4.1.10-v7+\r\ngyp ERR! command \"nodejs\" \"/usr/bin/node-gyp\" \"rebuild\"\r\ngyp ERR! cwd /home/aleco/VeraLink/node_modules/hap-nodejs/node_modules/curve25519\r\ngyp ERR! node -v v0.10.25\r\ngyp ERR! node-gyp -v v0.12.2\r\ngyp ERR! not ok \r\nnpm WARN This failure might be due to the use of legacy binary \"node\"\r\nnpm WARN For further explanations, please read\r\n/usr/share/doc/nodejs/README.Debian\r\n \r\n\r\n> mdns@2.2.10 install /home/aleco/VeraLink/node_modules/hap-nodejs/node_modules/mdns\r\n> node-gyp rebuild\r\n\r\n\r\nnode.js:811\r\n    var cwd = process.cwd();\r\n                      ^\r\nError: ENOENT, no such file or directory\r\n    at Function.startup.resolveArgv0 (node.js:811:23)\r\n    at startup (node.js:58:13)\r\n    at node.js:902:3\r\nnpm WARN This failure might be due to the use of legacy binary \"node\"\r\nnpm WARN For further explanations, please read\r\n/usr/share/doc/nodejs/README.Debian\r\n \r\n\r\n> bignum@0.11.0 install /home/aleco/VeraLink/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum\r\n> node-gyp configure build\r\n\r\nchdir(): No such file or directory\r\n"},"comment":{"url":"https://api.github.com/repos/damianxd/VeraLink/issues/comments/163081018","html_url":"https://github.com/damianxd/VeraLink/issues/1#issuecomment-163081018","issue_url":"https://api.github.com/repos/damianxd/VeraLink/issues/1","id":163081018,"user":{"login":"damianxd","id":560054,"avatar_url":"https://avatars.githubusercontent.com/u/560054?v=3","gravatar_id":"","url":"https://api.github.com/users/damianxd","html_url":"https://github.com/damianxd","followers_url":"https://api.github.com/users/damianxd/followers","following_url":"https://api.github.com/users/damianxd/following{/other_user}","gists_url":"https://api.github.com/users/damianxd/gists{/gist_id}","starred_url":"https://api.github.com/users/damianxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damianxd/subscriptions","organizations_url":"https://api.github.com/users/damianxd/orgs","repos_url":"https://api.github.com/users/damianxd/repos","events_url":"https://api.github.com/users/damianxd/events{/privacy}","received_events_url":"https://api.github.com/users/damianxd/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T01:51:44Z","updated_at":"2015-12-09T01:51:44Z","body":"Hi,\r\n\r\nI think your problem is with node or npm version, as it says:\r\n`npm WARN This failure might be due to the use of legacy binary \"node\"\r\nnpm WARN For further explanations, please read\r\n/usr/share/doc/nodejs/README.Debian`\r\n\r\nWhich version are you using on both cases? You can check with\r\n\r\n```npm --version```\r\n\r\nand \r\n\r\n```node --version```\r\n\r\nCurrently the way to install node and npm properly, along with the needed libraries is by using the install instructions:\r\n\r\n```In Ubuntu/Debian system you can install the requirements with the following:\r\n\r\nsudo apt-get update\r\n\r\nsudo apt-get install nodejs npm git-core libnss-mdns libavahi-compat-libdnssd-dev\r\n\r\nsudo npm config set registry http://registry.npmjs.org/\r\n\r\nsudo npm install -g node-gyp```\r\n\r\nThere are other ways to install node, like with **nvm** or by source, but please use the one Ubuntu/Debian comes with, since that one is the stable one and also, the one I'm using to make this script.\r\n"}}