{"id":130,"date":"2020-03-02T03:37:00","date_gmt":"2020-03-02T03:37:00","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=130"},"modified":"2024-02-02T17:22:37","modified_gmt":"2024-02-02T22:22:37","slug":"how-to-install-npm-on-ubuntu","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/how-to-install-npm-on-ubuntu\/","title":{"rendered":"How to install npm on Ubuntu"},"content":{"rendered":"\n<p>Update your repository if you haven&#8217;t done so in a long time<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt-get update<\/code><\/pre>\n\n\n\n<p>Install nodejs<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt-get install nodejs<\/code><\/pre>\n\n\n\n<p>Install npm<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt-get install npm<\/code><\/pre>\n\n\n\n<p>Check if npm installed correctly<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ which npm\n\/usr\/bin\/npm\n$ npm<\/code><\/pre>\n\n\n\n<p>You shouldn&#8217;t get any error messages and the second command should give you usage instructions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update your repository if you haven&#8217;t done so in a long time Install nodejs Install npm Check if npm installed correctly You shouldn&#8217;t get any error messages and the second command should give you usage instructions.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[185,34],"tags":[82,54,35,61],"class_list":["post-130","post","type-post","status-publish","format-standard","hentry","category-javascript","category-linux","tag-installation-guide","tag-javascript","tag-linux","tag-npm"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=130"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/130\/revisions"}],"predecessor-version":[{"id":131,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/130\/revisions\/131"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}