<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: fisayo~</title>
    <description>The latest articles on Forem by fisayo~ (@fisayodoris).</description>
    <link>https://forem.com/fisayodoris</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1327776%2F1eaff947-c755-48f8-bf4e-27710deaedb3.jpeg</url>
      <title>Forem: fisayo~</title>
      <link>https://forem.com/fisayodoris</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/fisayodoris"/>
    <language>en</language>
    <item>
      <title>HOW TO INSTALL NVM ON WINDOWS</title>
      <dc:creator>fisayo~</dc:creator>
      <pubDate>Tue, 05 Mar 2024 10:43:19 +0000</pubDate>
      <link>https://forem.com/fisayodoris/how-to-install-nvm-on-windows-1g35</link>
      <guid>https://forem.com/fisayodoris/how-to-install-nvm-on-windows-1g35</guid>
      <description>&lt;p&gt;If you find yourself at a crossroads, wondering how to seamlessly manage different Node.js versions, worry not - I'm here to guide you through the installation process of NVM (Node Version Manager). NVM is a tool that allows you to easily manage multiple installations of node.js on a single machine. It is useful for developers who work on projects with different node versions required.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;NVM is different from NPM in that NPM is for managing different packages or libraries of different JavaScript code written by other developers.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;INSTALLING NVM FOR WINDOWS&lt;/strong&gt;
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Before diving into NVM, ensure you uninstall any existing Node.js versions to prevent conflicts with the upcoming NVM installation.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Clear your terminal to create a clean slate. This ensures a smooth space for NVM installation.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Navigate to the &lt;a href="https://medium.com/r/?url=https%3A%2F%2Fgithub.com%2Fcoreybutler%2Fnvm-windows%2Freleases"&gt;NVM for Windows repository on github&lt;/a&gt; to download the nvm installer. In the &lt;strong&gt;assets folder&lt;/strong&gt; click the file that reads &lt;strong&gt;'nvm-setup.exe'&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnjza1dco15xrq7m52nqn.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnjza1dco15xrq7m52nqn.PNG" alt="a picture showing the nvm github repo showing the assets folder" width="800" height="464"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This initiates the download of the latest version of nvm to your machine.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;3. Once installed, open a new terminal and confirm the successful installation by typing in the command:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nvm -v
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command should display the version number of the latest NVM you installed.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;USING NVM TO SWITCH BETWEEN NODE VERSIONS&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Now that NVM is at your disposal, let's explore its power to effortlessly manage various Node.js versions for diverse projects.&lt;/p&gt;




&lt;ol&gt;
&lt;li&gt;Upon NVM installation, you can:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;a. Run your project on the new terminal to confirm the required node version (an error indicating the required Node.js version will definitely be displayed) OR&lt;/p&gt;

&lt;p&gt;b. In the package.json file, under dependencies, look for &lt;strong&gt;'@types/node'&lt;/strong&gt;. This usually indicates the node version required for the project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbsuhcsgi7kyppx8yuvzb.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbsuhcsgi7kyppx8yuvzb.PNG" alt="Screenshot of package.json file" width="323" height="97"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now that you know the version required, you can install it by running the command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nvm install &amp;lt;specified_version&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For instance, if the project needs version 16.14.0:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nvm install 16.14.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;ul&gt;
&lt;li&gt;2. Receive confirmation with the "Installation complete" message. To switch to the installed version, type in the command:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nvm use 16.14.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;ul&gt;
&lt;li&gt;3. Effortlessly manage your Node.js versions by checking the installed ones with this command:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nvm list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  &lt;strong&gt;Conclusion&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Embrace the convenience of NVM - install different versions as per project requirements, seamlessly switch between them, and bid farewell to storage congestion and the tedious cycle of downloading and uninstalling. NVM is your gateway to efficient Node.js version management.&lt;/p&gt;

&lt;p&gt;For further contributions or any questions, feel free to connect with me on &lt;a href="https://medium.com/r/?url=https%3A%2F%2Fx.com%2Ffisayodoris%3Fs%3D21%26t%3Dls7kw_ktdpGNCqkEeO_26w"&gt;Twitter&lt;/a&gt;. Until next time, happy coding!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>nvm</category>
      <category>node</category>
      <category>npm</category>
    </item>
  </channel>
</rss>
