{"id":557,"date":"2020-07-08T15:01:25","date_gmt":"2020-07-08T07:01:25","guid":{"rendered":"http:\/\/wp.vicds.com\/?p=557"},"modified":"2021-05-17T15:41:16","modified_gmt":"2021-05-17T07:41:16","slug":"node-js-install-debain","status":"publish","type":"post","link":"https:\/\/wp.vicds.com\/?p=557","title":{"rendered":"node.js install @debain"},"content":{"rendered":"\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-\">curl -sSL https:\/\/deb.nodesource.com\/gpgkey\/nodesource.gpg.key | sudo apt-key add -\n# wget can also be used:\n# wget --quiet -O - https:\/\/deb.nodesource.com\/gpgkey\/nodesource.gpg.key | sudo apt-key add -\n# Replace with the branch of Node.js or io.js you want to install: node_6.x, node_8.x, etc...  check https:\/\/nodejs.org\/en\/\nVERSION=node_8.x\n# The below command will set this correctly, but if lsb_release isn&#039;t available, you can set it manually:\n# - For Debian distributions: jessie, sid, etc...\n# - For Ubuntu distributions: xenial, bionic, etc...\n# - For Debian or Ubuntu derived distributions your best option is to use the codename corresponding to the upstream release your distribution is based off. This is an advanced scenario and unsupported if your distribution is not listed as supported per earlier in this README.\nDISTRO=&quot;$(lsb_release -s -c)&quot;\necho &quot;deb https:\/\/deb.nodesource.com\/$VERSION $DISTRO main&quot; | sudo tee \/etc\/apt\/sources.list.d\/nodesource.list\necho &quot;deb-src https:\/\/deb.nodesource.com\/$VERSION $DISTRO main&quot; | sudo tee -a \/etc\/apt\/sources.list.d\/nodesource.list\n\nsudo apt-get update\nsudo apt-get install nodejs\n\n\nnpm \ncurl -L https:\/\/npmjs.org\/install.sh | sudo sh<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-557","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/wp.vicds.com\/index.php?rest_route=\/wp\/v2\/posts\/557","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.vicds.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.vicds.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.vicds.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.vicds.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=557"}],"version-history":[{"count":2,"href":"https:\/\/wp.vicds.com\/index.php?rest_route=\/wp\/v2\/posts\/557\/revisions"}],"predecessor-version":[{"id":559,"href":"https:\/\/wp.vicds.com\/index.php?rest_route=\/wp\/v2\/posts\/557\/revisions\/559"}],"wp:attachment":[{"href":"https:\/\/wp.vicds.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.vicds.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.vicds.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}