{"id":1441,"date":"2023-08-25T09:42:17","date_gmt":"2023-08-25T08:42:17","guid":{"rendered":"https:\/\/editjournal.redakt.eu\/faxmodem\/?p=1441"},"modified":"2023-10-19T10:30:43","modified_gmt":"2023-10-19T09:30:43","slug":"nvm-npm-node-command-not-found","status":"publish","type":"post","link":"https:\/\/editjournal.redakt.eu\/faxmodem\/blog\/development\/nvm-npm-node-command-not-found\/","title":{"rendered":"nvm, npm, node: Command not found"},"content":{"rendered":"<h3>The problem<\/h3>\n<p>I had <code>gatsbyjs<\/code>, <code>node<\/code> and <code>npm<\/code> installed on a Debian system. Now I'm getting this error:<\/p>\n<blockquote>\n<p>-bash: gatsby: command not found<\/p>\n<p>-bash: node: command not found<\/p>\n<p>-bash: npm: command not found<\/p>\n<\/blockquote>\n<h3>Troubleshooting<\/h3>\n<ol>\n<li>\n<p>Check <code>npm<\/code> installation using the package manager:<\/p>\n<pre><code>apt-cache policy npm<\/code><\/pre>\n<blockquote>\n<p>npm:<br \/>\nInstalled: (none)<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>Check <code>nvm<\/code> installation:<\/p>\n<pre><code>nvm --version<\/code><\/pre>\n<blockquote>\n<p>0.39.3<\/p>\n<\/blockquote>\n<p>This means Node JS was installed using <a href=\"https:\/\/github.com\/nvm-sh\/nvm\">Node Version Manager<\/a>.<\/p>\n<\/li>\n<li>\n<p>Check node versions installed locally through <code>nvm<\/code>:<\/p>\n<pre><code>nvm ls<\/code><\/pre>\n<blockquote>\n<p>v14.21.3<br \/>\nv16.19.0<br \/>\nv18.14.0<br \/>\ndefault -&gt; lts\/* (-&gt; N\/A)<br \/>\nnode -&gt; stable (-&gt; v18.14.0) (default)<br \/>\nstable -&gt; 18.14 (-&gt; v18.14.0) (default)<\/p>\n<\/blockquote>\n<\/li>\n<\/ol>\n<h3>Solution<\/h3>\n<pre><code>nvm use stable<\/code><\/pre>\n<blockquote>\n<p>Now using node v18.14.0 (npm v9.3.1)<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>The problem I had gatsbyjs, node and npm installed on a Debian system. Now I&#8217;m getting this error: -bash: gatsby: command not found -bash: node: command not found -bash: npm: command not found Troubleshooting Check npm installation using the package manager: apt-cache policy npm npm: Installed: (none) Check nvm installation: nvm &#8211;version 0.39.3 This means&hellip; <a class=\"more-link\" href=\"https:\/\/editjournal.redakt.eu\/faxmodem\/blog\/development\/nvm-npm-node-command-not-found\/\">Continue reading <span class=\"screen-reader-text\">nvm, npm, node: Command not found<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[706],"tags":[775,683,769,766,1123],"class_list":["post-1441","post","type-post","status-publish","format-standard","hentry","category-development","tag-debian","tag-gatsbyjs","tag-node-js","tag-npm","tag-nvm","entry"],"_links":{"self":[{"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/posts\/1441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/comments?post=1441"}],"version-history":[{"count":3,"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/posts\/1441\/revisions"}],"predecessor-version":[{"id":1466,"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/posts\/1441\/revisions\/1466"}],"wp:attachment":[{"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/media?parent=1441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/categories?post=1441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/editjournal.redakt.eu\/faxmodem\/wp-json\/wp\/v2\/tags?post=1441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}