{"id":1415,"date":"2023-09-21T17:34:41","date_gmt":"2023-09-21T08:34:41","guid":{"rendered":"https:\/\/www.santoshkori.com\/blog\/?p=1415"},"modified":"2023-10-07T22:40:29","modified_gmt":"2023-10-07T13:40:29","slug":"nvm-is-not-working-in-window","status":"publish","type":"post","link":"https:\/\/www.santoshkori.com\/blog\/nvm-is-not-working-in-window\/","title":{"rendered":"nvm is not working in the window?"},"content":{"rendered":"\n<p>I am working on multiple projects as usual and tried the normal solution to use node version manager via the command nvm ls to list available versions in the window<\/p>\n\n\n\n<p><code>nvm ls<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.santoshkori.com\/blog\/wp-content\/uploads\/2023\/09\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"392\" height=\"179\" src=\"https:\/\/www.santoshkori.com\/blog\/wp-content\/uploads\/2023\/09\/image.png\" alt=\"\" class=\"wp-image-1416\" title=\"\" srcset=\"https:\/\/www.santoshkori.com\/blog\/wp-content\/uploads\/2023\/09\/image.png 392w, https:\/\/www.santoshkori.com\/blog\/wp-content\/uploads\/2023\/09\/image-300x137.png 300w\" sizes=\"auto, (max-width: 392px) 100vw, 392px\" \/><\/a><\/figure>\n\n\n\n<p>and then nvm use targeted version via using nvm use *****<\/p>\n\n\n\n<p><code>nvm use 14.21.3<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.santoshkori.com\/blog\/wp-content\/uploads\/2023\/09\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"332\" height=\"71\" src=\"https:\/\/www.santoshkori.com\/blog\/wp-content\/uploads\/2023\/09\/image-1.png\" alt=\"\" class=\"wp-image-1417\" title=\"\" srcset=\"https:\/\/www.santoshkori.com\/blog\/wp-content\/uploads\/2023\/09\/image-1.png 332w, https:\/\/www.santoshkori.com\/blog\/wp-content\/uploads\/2023\/09\/image-1-300x64.png 300w\" sizes=\"auto, (max-width: 332px) 100vw, 332px\" \/><\/a><\/figure>\n\n\n\n<p>But this is not working as expected in the window. <\/p>\n\n\n\n<p>So here is an alternative solution.<\/p>\n\n\n\n<p>Step 1: Rename current nodejs folder in <strong>C:\\Program Files\\nodejs<\/strong> to <strong>nodejsx<\/strong><\/p>\n\n\n\n<p>Step 2: run npm ls to list all install available versions (see above step). If want to install a specific version then run<\/p>\n\n\n\n<p><code>nvm install 8.17.0<\/code><\/p>\n\n\n\n<p>8.17.0 is the version of nodejs<\/p>\n\n\n\n<p>Step3: After listing and checking the install node version in the window system, use <\/p>\n\n\n\n<p><code>node use 8.17.0<\/code><\/p>\n\n\n\n<p>Step 4: confirm the current version by running node -v<\/p>\n\n\n\n<p><code>node -v<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am working on multiple projects as usual and tried the normal solution to use node version manager via the command nvm ls to list available versions in the window nvm ls and then nvm use targeted version via using nvm use ***** nvm use 14.21.3 But this is not working as expected in the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1422,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[752],"tags":[750],"class_list":["post-1415","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","tag-nodejs"],"_links":{"self":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/comments?post=1415"}],"version-history":[{"count":3,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1415\/revisions"}],"predecessor-version":[{"id":1420,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1415\/revisions\/1420"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/media\/1422"}],"wp:attachment":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/media?parent=1415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/categories?post=1415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/tags?post=1415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}