<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Node on the art of simplicity</title><link>https://naoko.github.io/tags/node/</link><description>Recent content in Node on the art of simplicity</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 25 Oct 2020 00:00:00 +0000</lastBuildDate><atom:link href="https://naoko.github.io/tags/node/index.xml" rel="self" type="application/rss+xml"/><item><title>nvm to manage node version</title><link>https://naoko.github.io/posts/2020-10-25-nvm/</link><pubDate>Sun, 25 Oct 2020 00:00:00 +0000</pubDate><guid>https://naoko.github.io/posts/2020-10-25-nvm/</guid><description>&lt;p&gt;NVM is Node Version Manager is a tool to manage multiple node.js version.&lt;/p&gt;
&lt;h3 id="list-installed-version"&gt;list installed version&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;❯ nvm ls

 v8.17.0
-&amp;gt; v12.9.0
 system
default -&amp;gt; 12.9 (-&amp;gt; v12.9.0)
node -&amp;gt; stable (-&amp;gt; v12.9.0) (default)
stable -&amp;gt; 12.9 (-&amp;gt; v12.9.0) (default)
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="list-available-version-on-remote-is-version-14-available-if-so-it-will-list"&gt;list available version on remote (is version 14 available? If so it will list)&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;❯ nvm ls-remote 14
 v14.0.0
 v14.1.0
 ...
 v14.13.1
 v14.14.0
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="install-the-version-that-you-would-like"&gt;Install the version that you would like&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;❯ nvm install 14
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="set-version-14-or-another-version-as-default"&gt;Set version 14 (or another version) as default&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;nvm alias default 14
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="switch-to-version-8-or-another-version"&gt;Switch to version 8 (or another version)&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;❯ nvm use v8
Now using node v8.17.0 (npm v6.14.8)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Cheers!&lt;/p&gt;</description></item></channel></rss>