{"id":28,"date":"2018-05-13T18:16:22","date_gmt":"2018-05-13T18:16:22","guid":{"rendered":"http:\/\/www.astill.org\/wp\/?p=28"},"modified":"2018-05-13T18:16:22","modified_gmt":"2018-05-13T18:16:22","slug":"pi-zero-w-read-gpio-with-nodejs-10","status":"publish","type":"post","link":"http:\/\/www.astill.org\/wp\/?p=28","title":{"rendered":"Pi Zero W read GPIO with nodejs 10"},"content":{"rendered":"<p>The Pi Zero W uses the arm6l architecture. <\/p>\n<p>For node v10 the zip file can be found in this directory, I would imagine future versions would be follow a similar directory structure.<br \/>\nhttp:\/\/nodejs.org\/dist\/latest-v10.x\/ <\/p>\n<p>In the terminal move to a directory you want to download the gzip file to. I use ~\/dev\/node<\/p>\n<p>cd ~\/dev\/node<br \/>\nwget http:\/\/nodejs.org\/dist\/latest-v10.x\/node-v10.1.0-linux-armv6l.tar.gz<\/p>\n<p>Now unzip the files into the \/usr\/local directory:<br \/>\ncd \/usr\/local<br \/>\nsudo tar xvfz ~\/dev\/node\/ node-v10.1.0-linux-armv6l.tar.gz &#8211;strip=1<\/p>\n<p>Test its all working with:<br \/>\nnode -v<\/p>\n<p>pi@raspberrypi:\/usr\/local $ node -v<br \/>\nv10.1.0<\/p>\n<p><strong>References<\/strong><br \/>\nhttps:\/\/blog.miniarray.com\/installing-node-js-on-a-raspberry-pi-zero-21a1522db2bb <\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Pi Zero W uses the arm6l architecture. For node v10 the zip file can be found in this directory,&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-28","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.astill.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.astill.org\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.astill.org\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.astill.org\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.astill.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=28"}],"version-history":[{"count":2,"href":"http:\/\/www.astill.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/28\/revisions"}],"predecessor-version":[{"id":30,"href":"http:\/\/www.astill.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/28\/revisions\/30"}],"wp:attachment":[{"href":"http:\/\/www.astill.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.astill.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.astill.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}