{"id":2388,"date":"2016-08-09T15:08:46","date_gmt":"2016-08-09T22:08:46","guid":{"rendered":"https:\/\/www.curlybrace.com\/words\/?p=2388"},"modified":"2016-08-09T15:15:57","modified_gmt":"2016-08-09T22:15:57","slug":"installing-electron-under-ubuntu-node-not-found","status":"publish","type":"post","link":"https:\/\/www.curlybrace.com\/words\/2016\/08\/installing-electron-under-ubuntu-node-not-found\/","title":{"rendered":"Installing Electron under Ubuntu &#8211; &#8220;node: not found&#8221;"},"content":{"rendered":"<p>I was trying to install Electron on Ubuntu using this command:<\/p>\n<blockquote class=\"bash\"><p>\n  npm install electron-prebuilt -g\n<\/p><\/blockquote>\n<p>It would run for awhile, then fail with this error:<\/p>\n<blockquote class=\"bash\"><p>\n  sh: 1: node: not found\n<\/p><\/blockquote>\n<p>Several online sources said to install &#8220;node-legacy&#8221;, but this never worked:<\/p>\n<blockquote class=\"bash\"><p>\nsudo apt-get install node-legacy<br \/>\nReading package lists&#8230; Done<br \/>\nBuilding dependency tree Reading state information&#8230; Done<br \/>\nE: Unable to locate package node-legacy\n<\/p><\/blockquote>\n<p>Searching the apt cache revealed something:<\/p>\n<blockquote class=\"bash\"><p>\nsudo apt-cache search legacy | grep node<br \/>\nnode-dompurify &#8211; XSS sanitizer for HTML, MathML and SVG &#8211; Node.js module<br \/>\nnode-es5-shim &#8211; ECMAScript 5 compat. shims for old JavaScript engines (Node.js)<br \/>\nnode-es6-shim &#8211; ECMAScript 6 compat. shims for legacy JavaScript engines (Node.js)<br \/>\nnodejs-legacy &#8211; evented I\/O for V8 javascript (legacy symlink)\n<\/p><\/blockquote>\n<p>The package is <tt>nodejs-legacy<\/tt>, not <tt>node-legacy<\/tt>! Installing <tt>nodejs-legacy<\/tt> solved the problem, and Electron installed cleanly after that.<\/p>\n<blockquote class=\"bash\"><p>\n  sudo apt-get install nodejs-legacy\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I was trying to install Electron on Ubuntu using this command: npm install electron-prebuilt -g It would run for awhile, then fail with this error: sh: 1: node: not found Several online sources said to install &#8220;node-legacy&#8221;, but this never &hellip; <a href=\"https:\/\/www.curlybrace.com\/words\/2016\/08\/installing-electron-under-ubuntu-node-not-found\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[308,15],"tags":[],"class_list":["post-2388","post","type-post","status-publish","format-standard","hentry","category-electron","category-technology"],"_links":{"self":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/2388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/comments?post=2388"}],"version-history":[{"count":14,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/2388\/revisions"}],"predecessor-version":[{"id":2403,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/2388\/revisions\/2403"}],"wp:attachment":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/media?parent=2388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/categories?post=2388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/tags?post=2388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}