{"action":"created","issue":{"url":"https://api.github.com/repos/LowPowerLab/RaspberryPi-Gateway/issues/30","repository_url":"https://api.github.com/repos/LowPowerLab/RaspberryPi-Gateway","labels_url":"https://api.github.com/repos/LowPowerLab/RaspberryPi-Gateway/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/LowPowerLab/RaspberryPi-Gateway/issues/30/comments","events_url":"https://api.github.com/repos/LowPowerLab/RaspberryPi-Gateway/issues/30/events","html_url":"https://github.com/LowPowerLab/RaspberryPi-Gateway/issues/30","id":220531642,"number":30,"title":"Install failed","user":{"login":"gigawatts","id":1954516,"avatar_url":"https://avatars1.githubusercontent.com/u/1954516?v=3","gravatar_id":"","url":"https://api.github.com/users/gigawatts","html_url":"https://github.com/gigawatts","followers_url":"https://api.github.com/users/gigawatts/followers","following_url":"https://api.github.com/users/gigawatts/following{/other_user}","gists_url":"https://api.github.com/users/gigawatts/gists{/gist_id}","starred_url":"https://api.github.com/users/gigawatts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gigawatts/subscriptions","organizations_url":"https://api.github.com/users/gigawatts/orgs","repos_url":"https://api.github.com/users/gigawatts/repos","events_url":"https://api.github.com/users/gigawatts/events{/privacy}","received_events_url":"https://api.github.com/users/gigawatts/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-04-10T03:53:46Z","updated_at":"2017-04-23T15:56:12Z","closed_at":"2017-04-18T15:24:51Z","body":"Brand new Raspian jessie lite install (2017-03-02).\r\n\r\nsudo apt-get update && sudo apt-get install npm git\r\nafter cloning this git repo and running \"npm install\", the following errors result:\r\n\r\n```\r\n $ npm install\r\n\r\n> RaspberryPi-Gateway@8.8.0 preinstall /home/pi/RaspberryPi-Gateway\r\n>\r\n\r\nnpm WARN engine request@2.78.0: wanted: {\"node\":\">= 4\"} (current: {\"node\":\"0.10.29\",\"npm\":\"1.4.21\"})\r\nnpm WARN deprecated node-uuid@1.4.8: Use uuid module instead\r\nnpm WARN engine form-data@2.1.4: wanted: {\"node\":\">= 0.12\"} (current: {\"node\":\"0.10.29\",\"npm\":\"1.4.21\"})\r\nnpm WARN engine hawk@3.1.3: wanted: {\"node\":\">=0.10.32\"} (current: {\"node\":\"0.10.29\",\"npm\":\"1.4.21\"})\r\nnpm WARN engine cryptiles@2.0.5: wanted: {\"node\":\">=0.10.40\"} (current: {\"node\":\"0.10.29\",\"npm\":\"1.4.21\"})\r\nnpm WARN engine boom@2.10.1: wanted: {\"node\":\">=0.10.40\"} (current: {\"node\":\"0.10.29\",\"npm\":\"1.4.21\"})\r\nnpm WARN engine hoek@2.16.3: wanted: {\"node\":\">=0.10.40\"} (current: {\"node\":\"0.10.29\",\"npm\":\"1.4.21\"})\r\n/\r\n> serialport@2.0.7-beta5 install /home/pi/RaspberryPi-Gateway/node_modules/serialport\r\n> node-pre-gyp install --fallback-to-build\r\n\r\n/usr/bin/env: node: No such file or directory\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! serialport@2.0.7-beta5 install: `node-pre-gyp install --fallback-to-build`\r\nnpm ERR! Exit status 127\r\nnpm ERR!\r\nnpm ERR! Failed at the serialport@2.0.7-beta5 install script.\r\nnpm ERR! This is most likely a problem with the serialport package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-pre-gyp install --fallback-to-build\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls serialport\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! System Linux 4.4.50+\r\nnpm ERR! command \"/usr/bin/nodejs\" \"/usr/bin/npm\" \"install\"\r\nnpm ERR! cwd /home/pi/RaspberryPi-Gateway\r\nnpm ERR! node -v v0.10.29\r\nnpm ERR! npm -v 1.4.21\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR!\r\nnpm ERR! Additional logging details can be found in:\r\nnpm ERR!     /home/pi/RaspberryPi-Gateway/npm-debug.log\r\nnpm ERR! not ok code 0\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/LowPowerLab/RaspberryPi-Gateway/issues/comments/296452950","html_url":"https://github.com/LowPowerLab/RaspberryPi-Gateway/issues/30#issuecomment-296452950","issue_url":"https://api.github.com/repos/LowPowerLab/RaspberryPi-Gateway/issues/30","id":296452950,"user":{"login":"karrots","id":6307688,"avatar_url":"https://avatars3.githubusercontent.com/u/6307688?v=3","gravatar_id":"","url":"https://api.github.com/users/karrots","html_url":"https://github.com/karrots","followers_url":"https://api.github.com/users/karrots/followers","following_url":"https://api.github.com/users/karrots/following{/other_user}","gists_url":"https://api.github.com/users/karrots/gists{/gist_id}","starred_url":"https://api.github.com/users/karrots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karrots/subscriptions","organizations_url":"https://api.github.com/users/karrots/orgs","repos_url":"https://api.github.com/users/karrots/repos","events_url":"https://api.github.com/users/karrots/events{/privacy}","received_events_url":"https://api.github.com/users/karrots/received_events","type":"User","site_admin":false},"created_at":"2017-04-23T15:56:12Z","updated_at":"2017-04-23T15:56:12Z","body":"This issue is because for the RPi 1 there is no `.deb` to download so the install script downloads and manually installs the NodeJS binaries. Something is going wrong with this code path (its only hit on an RPi 1) and the binaries are not being installed correctly.\r\n\r\nTry executing `sudo bash -x gatewaysetup.sh` on a fresh install and paste any errors that are shown.  The `-x` on the script will turn on debug mode.\r\n"}}
{"actor":{"display_login":"karrots"}}