{"id":6707,"date":"2021-11-07T16:22:56","date_gmt":"2021-11-07T16:52:56","guid":{"rendered":"https:\/\/ultering.com\/it4us\/?p=6707"},"modified":"2022-01-07T01:11:17","modified_gmt":"2022-01-07T01:41:17","slug":"using-multiple-versions-of-node-js-with-nvm-command","status":"publish","type":"post","link":"https:\/\/ultering.com\/it4us\/?p=6707","title":{"rendered":"Node.js: Using multiple versions of Node.js with NVM command"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-hierarchy ez-toc-counter ez-toc-white ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69fc66dea6d30\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69fc66dea6d30\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ultering.com\/it4us\/?p=6707\/#LINUX\" title=\"LINUX\">LINUX<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ultering.com\/it4us\/?p=6707\/#WINDOWS\" title=\"WINDOWS\">WINDOWS<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ultering.com\/it4us\/?p=6707\/#Installing_with_nvm-windows\" title=\"Installing with nvm-windows\">Installing with nvm-windows<\/a><ul class='ez-toc-list-level-6' ><li class='ez-toc-heading-level-6'><ul class='ez-toc-list-level-6' ><li class='ez-toc-heading-level-6'><ul class='ez-toc-list-level-6' ><li class='ez-toc-heading-level-6'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ultering.com\/it4us\/?p=6707\/#SITES_INTERNAL_CONTROL_SYNC_yusing_multimple_nodejs_with_nvm-windows\" title=\"SITE&#8217;S INTERNAL CONTROL \n@SYNC: y;using multimple node.js with nvm-windows&lt;memo&lt;node;.\">SITE&#8217;S INTERNAL CONTROL \n@SYNC: y;using multimple node.js with nvm-windows&lt;memo&lt;node;.<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"LINUX\"><\/span>LINUX<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>There are many tutorials using a similar approach, for instance:<\/p>\n<p><a href=\"https:\/\/www.sitepoint.com\/quick-tip-multiple-versions-node-nvm\/\">Installing Multiple Versions of Node.js Using nvm<\/a><br \/>\n<a href=\"https:\/\/heynode.com\/tutorial\/install-nodejs-locally-nvm\/\">Install Node.js Locally with Node Version Manager<\/a><\/p>\n<p>The tutorial show a curl or wget command using a pre-defined URL that points to a specific version.<br \/>\nMy question is that versions come old and I&#8217;d like an alternative procedure to make sure to get the latest version.<\/p>\n<p>The straight way is: go to the source.<br \/>\nThat way, point to:<br \/>\n<a href=\"https:\/\/github.com\/nvm-sh\/nvm\">github.com\/nvm-sh\/nvm<\/a><\/p>\n<p>Go to the README.md and search for &#8220;Installing&#8230;&#8221;and follow the instructions.<\/p>\n<p>&nbsp;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"WINDOWS\"><\/span>WINDOWS<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The procedure for windows requires some extra steps.<br \/>\nTo avoid installing Cygwin and etc. to enable using bash console there are alternatives that you may find in the same documentation referred above.<\/p>\n<p>Among the alternatives supplied, I&#8217;ve chosen the one shown next that worked fine for me.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Installing_with_nvm-windows\"><\/span>Installing with <em>nvm-windows<\/em><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>Go to:<br \/>\n<a href=\"https:\/\/github.com\/coreybutler\/nvm-windows\">github.com\/coreybutler\/nvm-windows<\/a><\/li>\n<li>Download<br \/>\n<a href=\"https:\/\/github.com\/coreybutler\/nvm-windows\/releases\">github.com\/coreybutler\/nvm-windows\/releases<\/a><\/li>\n<li>Chose an option.<br \/>\nThere are many options and I&#8217;ve picked:<br \/>\nnvm-setup.zip<\/li>\n<li>Extract and run as admin:<br \/>\nnvm-setup.exe<\/li>\n<li>Follow the wizard and if offered to control, accept it.<\/li>\n<\/ol>\n<p>After the installation, open a new console.<br \/>\nTo understand how to use it, you may:<br \/>\n1. Type:<br \/>\nnvm<\/p>\n<p>2. Or use the README.md documentation at:<br \/>\n<a href=\"https:\/\/github.com\/coreybutler\/nvm-windows\">github.com\/coreybutler\/nvm-windows<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h6><span class=\"ez-toc-section\" id=\"SITES_INTERNAL_CONTROL_SYNC_yusing_multimple_nodejs_with_nvm-windows\"><\/span><span style=\"color: #666699;\">SITE&#8217;S INTERNAL CONTROL<\/span><br \/>\n<span style=\"color: #666699;\">@SYNC: y;using multimple node.js with nvm-windows&lt;memo&lt;node;.<\/span><span class=\"ez-toc-section-end\"><\/span><\/h6>\n<!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>LINUX There are many tutorials using a similar approach, for instance: Installing Multiple Versions of Node.js Using nvm Install Node.js Locally with Node Version Manager The tutorial show a curl or wget command using a pre-defined URL that points to a specific version. My question is that versions come old and I&#8217;d like an alternative &#8230; <a href=\"https:\/\/ultering.com\/it4us\/?p=6707\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &#8220;Node.js: Using multiple versions of Node.js with NVM command&#8221;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[26],"tags":[],"class_list":["post-6707","post","type-post","status-publish","format-standard","hentry","category-javascript"],"_links":{"self":[{"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/posts\/6707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6707"}],"version-history":[{"count":5,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/posts\/6707\/revisions"}],"predecessor-version":[{"id":6749,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=\/wp\/v2\/posts\/6707\/revisions\/6749"}],"wp:attachment":[{"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ultering.com\/it4us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}