{"componentChunkName":"component---src-templates-post-js","path":"/pensieve/how-to-manage-multiple-nodejs-version-in-a-single-machine-using-nvm-170a","result":{"data":{"markdownRemark":{"html":"<p><img src=\"https://miro.medium.com/max/3200/1*n7ba3rjWYs_lZeYbKogKdw.jpeg\" alt=\"Draft fail\"></p>\n<p>Ever got in a situation where you have to use different nodejs versions for different projects. or you want to have the stable and the latest release side by side. Installing the particular release when you need it might seem a probable solution. But what if you need multiple node versions frequently. The above process seems kind of illogical for the purpose. So NVM aka node version manager comes to the rescue allowing you to have more than one version of node on your machine so you can switch the version with just a command.For Mac and Linux the link is <a href=\"http://github.com/creationix/nvm\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">http://github.com/creationix/nvm</a> .For windows <a href=\"http://github.com/coreybutler/nvm-windows\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">http://github.com/coreybutler/nvm-windows</a> . All you have to do is go to the links depending upon your machine’s OS and download the latest release.\nGetting started\nAfter getting nvm installed on your machines , open up terminal or cmd and type in</p>\n<div class=\"gatsby-highlight\" data-language=\"shell-session\"><pre class=\"language-shell-session\"><code class=\"language-shell-session\"><span class=\"token output\">nvm list</span></code></pre></div>\n<p>To list all the node versions installed on the machine. To install a particular node version use</p>\n<div class=\"gatsby-highlight\" data-language=\"shell-session\"><pre class=\"language-shell-session\"><code class=\"language-shell-session\"><span class=\"token output\">nvm install &lt;node version number></span></code></pre></div>\n<p>for example,</p>\n<div class=\"gatsby-highlight\" data-language=\"shell-session\"><pre class=\"language-shell-session\"><code class=\"language-shell-session\"><span class=\"token output\">nvm install 10</span></code></pre></div>\n<p>To use a particular node version installed on your machine do</p>\n<div class=\"gatsby-highlight\" data-language=\"shell-session\"><pre class=\"language-shell-session\"><code class=\"language-shell-session\"><span class=\"token output\">nvm use &lt;node version></span></code></pre></div>\n<p>To uninstall a node version, do</p>\n<div class=\"gatsby-highlight\" data-language=\"shell-session\"><pre class=\"language-shell-session\"><code class=\"language-shell-session\"><span class=\"token output\">nvm uninstall &lt;node version></span></code></pre></div>\n<p>You can also pass in optional parameter which is the 32 or 64 bit version you would like to install or uninstall with install and uninstall command.\nFor help type in</p>\n<div class=\"gatsby-highlight\" data-language=\"shell-session\"><pre class=\"language-shell-session\"><code class=\"language-shell-session\"><span class=\"token output\">nvm -help</span></code></pre></div>\n<p>Happy Node’ing</p>","frontmatter":{"title":"How to manage multiple nodejs version in a single machine using nvm","description":null,"date":"2019-09-14","slug":"/pensieve/how-to-manage-multiple-nodejs-version-in-a-single-machine-using-nvm-170a","tags":["Nodejs","NPM","NVM"]}}},"pageContext":{}},"staticQueryHashes":["3115057458"]}