{"action":"opened","issue":{"url":"https://api.github.com/repos/rwaldron/johnny-five/issues/1040","repository_url":"https://api.github.com/repos/rwaldron/johnny-five","labels_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/1040/labels{/name}","comments_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/1040/comments","events_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/1040/events","html_url":"https://github.com/rwaldron/johnny-five/issues/1040","id":135322591,"number":1040,"title":"Failed to install dependencies on ubiLinux on Edison","user":{"login":"dougseven","id":1152548,"avatar_url":"https://avatars.githubusercontent.com/u/1152548?v=3","gravatar_id":"","url":"https://api.github.com/users/dougseven","html_url":"https://github.com/dougseven","followers_url":"https://api.github.com/users/dougseven/followers","following_url":"https://api.github.com/users/dougseven/following{/other_user}","gists_url":"https://api.github.com/users/dougseven/gists{/gist_id}","starred_url":"https://api.github.com/users/dougseven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougseven/subscriptions","organizations_url":"https://api.github.com/users/dougseven/orgs","repos_url":"https://api.github.com/users/dougseven/repos","events_url":"https://api.github.com/users/dougseven/events{/privacy}","received_events_url":"https://api.github.com/users/dougseven/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-22T05:34:51Z","updated_at":"2016-02-22T05:34:51Z","closed_at":null,"body":"I am trying to use Node 4.3.1, 5.0.0 or 5.6.0 on the Intel Edison (the Azure IoT SDK requires it). The official Yocto image is built with Node.js 0.10.*. I am trying to see if ubiLinux is a viable solution.\r\n\r\n1. I installed ubiLinux on the Edison using the instructions [here](http://www.emutexlabs.com/ubilinux/29-ubilinux/218-ubilinux-installation-instructions-for-intel-edison).\r\n2. I configured WiFi, etc.\r\n3. Ran apt-get update\r\n4. Installed Node.js by installing curl, Node.js, and Node.js build tools as follows:\r\n\r\n```\r\napt-get install curl\r\ncurl -sL https://deb.nodesource.com/setup_5.x | bash -\r\napt-get install --yes nodejs\r\napt-get install --yes build-essential\r\n```\r\n\r\nThat installed Node.js 0.10.42\r\n\r\nI installed NVM...\r\n\r\n```\r\ngit clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`\r\n\r\n. ~/.nvm/nvm.sh\r\n```\r\n\r\nAdded these lines to ~/.profile\r\n\r\n```\r\nexport NVM_DIR=\"$HOME/.nvm\"\r\n[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\" # This loads nvm\r\n```\r\n\r\nThen I installed Node.js 5.0.0\r\n\r\n```\r\nnvm install 5.0.0\r\n```\r\n\r\nIn my package.json for my test J5 app I have:\r\n\r\n```javascript\r\n{\r\n  \"name\": \"thinglabs-iot-sample\",\r\n  \"repository\": {\r\n    \"type\": \"git\",\r\n    \"url\": \"https://github.com/ThingLabsIo/IoTLabs/tree/master/Edison/AzureIoT\"\r\n  },\r\n  \"version\": \"0.1.2\",\r\n  \"private\":true,\r\n  \"description\": \"Sample app that connects a device to Azure using Node.js\",\r\n  \"main\": \"temp.js\",\r\n    \"author\": \"Doug Seven\",\r\n  \"license\": \"MIT\",\r\n  \"dependencies\": {\r\n    \"azure-iot-device\": \"1.0.1\",\r\n    \"azure-iot-device-amqp\": \"1.0.1\",\r\n    \"azure-iot-device-http\": \"1.0.1\",\r\n    \"azure-iot-device-mqtt\": \"1.0.1\",\r\n    \"johnny-five\": \"0.9.24\",\r\n    \"edison-io\": \"0.9.1\"\r\n  }\r\n}\r\n```\r\n\r\nWhen I run npm install this is the output\r\n\r\n```\r\nnpm WARN engine edison-io@0.9.1: wanted: {\"node\":\"latest\"} (current: {\"node\":\"5.0.0\",\"npm\":\"3.3.6\"})\r\n\r\n> galileo-io@0.8.18 postinstall /root/iot-labs/azure-iot/node_modules/galileo-io\r\n> node scripts/postinstall\r\n\r\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n  Do not quit the program until npm completes the installation process.  \r\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n{ [Error: Command failed: /bin/sh -c opkg info libmraa0\r\n/bin/sh: 1: opkg: not found\r\n]\r\n  killed: false,\r\n  code: 127,\r\n  signal: null,\r\n  cmd: '/bin/sh -c opkg info libmraa0' }\r\nnpm ERR! Linux 3.10.17-yocto-standard-r2\r\nnpm ERR! argv \"/root/.nvm/versions/node/v5.0.0/bin/node\" \"/root/.nvm/versions/node/v5.0.0/bin/npm\" \"install\"\r\nnpm ERR! node v5.0.0\r\nnpm ERR! npm  v3.3.6\r\nnpm ERR! file sh\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno ENOENT\r\nnpm ERR! syscall spawn\r\n\r\nnpm ERR! galileo-io@0.8.18 postinstall: `node scripts/postinstall`\r\nnpm ERR! spawn ENOENT\r\nnpm ERR! \r\nnpm ERR! Failed at the galileo-io@0.8.18 postinstall script 'node scripts/postinstall'.\r\nnpm ERR! This is most likely a problem with the galileo-io package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node scripts/postinstall\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls galileo-io\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /root/iot-labs/azure-iot/npm-debug.log\r\n```\r\n[npm-debug.txt](https://github.com/rwaldron/johnny-five/files/140151/npm-debug.txt)\r\n\r\n"}}