{"action":"created","issue":{"url":"https://api.github.com/repos/atom/electron/issues/3559","labels_url":"https://api.github.com/repos/atom/electron/issues/3559/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/3559/comments","events_url":"https://api.github.com/repos/atom/electron/issues/3559/events","html_url":"https://github.com/atom/electron/issues/3559","id":118439928,"number":3559,"title":"Electron installation fails. Ubuntu 16.04","user":{"login":"saq1610","id":10332349,"avatar_url":"https://avatars.githubusercontent.com/u/10332349?v=3","gravatar_id":"","url":"https://api.github.com/users/saq1610","html_url":"https://github.com/saq1610","followers_url":"https://api.github.com/users/saq1610/followers","following_url":"https://api.github.com/users/saq1610/following{/other_user}","gists_url":"https://api.github.com/users/saq1610/gists{/gist_id}","starred_url":"https://api.github.com/users/saq1610/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saq1610/subscriptions","organizations_url":"https://api.github.com/users/saq1610/orgs","repos_url":"https://api.github.com/users/saq1610/repos","events_url":"https://api.github.com/users/saq1610/events{/privacy}","received_events_url":"https://api.github.com/users/saq1610/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-23T18:15:57Z","updated_at":"2015-11-24T05:41:25Z","closed_at":"2015-11-24T05:41:25Z","body":"I have been trying to install electron on my Ubuntu system both as a dependancy and globally but both commands fail.\r\nHere is the output:\r\n```\r\nsaq1610@saq1610-MacBookPro:~/Watson$ sudo npm install electron-prebuilt -g\r\n/usr/local/bin/electron -> /usr/local/lib/node_modules/electron-prebuilt/cli.js\r\n\r\n> electron-prebuilt@0.35.1 postinstall /usr/local/lib/node_modules/electron-prebuilt\r\n> node install.js\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! electron-prebuilt@0.35.1 postinstall: `node install.js`\r\nnpm ERR! Exit status 127\r\nnpm ERR! \r\nnpm ERR! Failed at the electron-prebuilt@0.35.1 postinstall script.\r\nnpm ERR! This is most likely a problem with the electron-prebuilt package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node install.js\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls electron-prebuilt\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! System Linux 4.2.0-19-generic\r\nnpm ERR! command \"/usr/bin/nodejs\" \"/usr/bin/npm\" \"install\" \"electron-prebuilt\" \"-g\"\r\nnpm ERR! cwd /home/saq1610/Watson\r\nnpm ERR! node -v v4.2.2\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/saq1610/Watson/npm-debug.log\r\nnpm ERR! not ok code 0\r\nsaq1610@saq1610-MacBookPro:~/Watson$ \r\n```\r\nAccording to the log in `/usr/share/doc/nodejs/README.Debian` this seems to be the issue:\r\n\r\n```\r\nnodejs command\r\n--------------\r\n\r\nThe upstream name for the Node.js interpreter command is \"node\".\r\nIn Debian the interpreter command has been changed to \"nodejs\".\r\n\r\nThis was done to prevent a namespace collision: other commands use\r\nthe same name in their upstreams, such as ax25-node from the \"node\"\r\npackage.\r\n\r\nScripts calling Node.js as a shell command must be changed to instead\r\nuse the \"nodejs\" command.\r\n```\r\nIt seems that electron still calls upon \"node\" rather than \"nodejs\" which is why installation fails.\r\n"},"comment":{"url":"https://api.github.com/repos/atom/electron/issues/comments/159154777","html_url":"https://github.com/atom/electron/issues/3559#issuecomment-159154777","issue_url":"https://api.github.com/repos/atom/electron/issues/3559","id":159154777,"user":{"login":"zcbenz","id":639601,"avatar_url":"https://avatars.githubusercontent.com/u/639601?v=3","gravatar_id":"","url":"https://api.github.com/users/zcbenz","html_url":"https://github.com/zcbenz","followers_url":"https://api.github.com/users/zcbenz/followers","following_url":"https://api.github.com/users/zcbenz/following{/other_user}","gists_url":"https://api.github.com/users/zcbenz/gists{/gist_id}","starred_url":"https://api.github.com/users/zcbenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcbenz/subscriptions","organizations_url":"https://api.github.com/users/zcbenz/orgs","repos_url":"https://api.github.com/users/zcbenz/repos","events_url":"https://api.github.com/users/zcbenz/events{/privacy}","received_events_url":"https://api.github.com/users/zcbenz/received_events","type":"User","site_admin":true},"created_at":"2015-11-24T05:41:25Z","updated_at":"2015-11-24T05:41:25Z","body":"I suggest reporting this to https://github.com/mafintosh/electron-prebuilt."}}