<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>install node.js Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/install-node-js/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 11 Jun 2020 00:48:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Install Node.js on Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-node-js-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-node-js-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Thu, 11 Jun 2020 17:45:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to install]]></category>
		<category><![CDATA[How To Install Node.js on Ubuntu 20.04]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[install node.js]]></category>
		<category><![CDATA[installing node.js on Linux]]></category>
		<category><![CDATA[node.js on Ubuntu 20.04]]></category>
		<category><![CDATA[Ubuntu 20.04 tutorials]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=20016</guid>

					<description><![CDATA[<p>Today we are going to learn how to install Node.js on Ubuntu 20.04. Node.js is an open-source cross-platform used for developing web applications, network tools, and other such applications. Node.js comes with two versions. One is long term support and the other is the latest version. Just follow the below steps for the easy and [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-node-js-on-ubuntu-20-04/">How To Install Node.js on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today we are going to learn how to install Node.js on Ubuntu 20.04. Node.js is an open-source cross-platform used for developing web applications, network tools, and other such applications. Node.js comes with two versions. One is long term support and the other is the latest version. Just follow the below steps for the easy and optimal installation of Node.js on Ubuntu 20.04.</p>



<h3><strong>Step 1: Update your Ubuntu System</strong></h3>



<p>To install any package on our system, first update it to the latest packages. Run the below command in your terminal.</p>



<pre class="wp-block-verse">sudo apt -y update</pre>



<h3><strong>Step 2: Installing Node.js on Ubuntu 20.04</strong></h3>



<p>Node.js can be installed on our Ubuntu 20.04 system using different methods. Here I listed the three methods to install Node.js on our Ubuntu system.</p>



<ul><li>By Node Source Repository</li><li>With the help of NVM (I recommend to install using NVM)</li><li>By Ubuntu Repository</li></ul>



<p>You can select your desired option but I recommend to install Node.js using the NVM second method listed above. Here we&#8217;ll see all the methods.</p>



<h3><strong>Step 3: Install Node.js with Node Source</strong></h3>



<p>To install Node.js with the help of Node Source, add the node source repository by firing the below command in your terminal.</p>



<p>Node.js 12 (LTS)</p>



<pre class="wp-block-verse">curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -</pre>



<p>Node.js 14 (Current Version)</p>



<pre class="wp-block-verse">curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -</pre>



<p>After adding the repository simply hit the below command to install the Node.js. There will be also an additional package installed on your system called NPM. NPM is the Node Package Manager used for the purpose of Java language.</p>



<pre class="wp-block-verse">sudo apt -y install nodejs</pre>



<p>Verify the version of installed Node.js by running the below command.</p>



<pre class="wp-block-verse">node -v</pre>



<p>Output:</p>



<p>You&#8217;ll see the similar results</p>



<pre class="wp-block-verse">sabir@Ubuntu20:~$ node -v
v12.18.0</pre>



<p>Also, you can find the NPM version by typing the given command in your terminal.</p>



<pre class="wp-block-verse">npm -v</pre>



<p>Output:</p>



<pre class="wp-block-verse">sabir@Ubuntu20:~$ npm -v<br>6.14.4</pre>



<h3><strong>Step 4: Installing Node.js by NVM</strong></h3>



<p>NVM stands for Node Version Manager helps us to switch between the different versions of Node.js. So, you can install the desired one with the help of NVM. To install Node.js using NVM, first install the NVM by typing the below command.</p>



<pre class="wp-block-verse">wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash</pre>



<p>Now, close the terminal and then open it again to make sure that nvm is loaded.</p>



<p>Then install the Node.js with the help of below command.</p>



<p>Node.js 12 (LTS)</p>



<pre class="wp-block-verse">nvm install --lts</pre>



<p>Node.js 14</p>



<pre class="wp-block-verse">nvm install node</pre>



<p>Verify the version by</p>



<pre class="wp-block-verse">sabir@Ubuntu20:~$ node -v
v14.4.0
sabir@Ubuntu20:~$ npm -v
6.14.5
sabir@Ubuntu20:~$</pre>



<p>Some NVM Commands</p>



<p>You can list the available versions of Node.js with the help of below command.</p>



<pre class="wp-block-verse">nvm ls-remote</pre>



<p>For installing the specific version just type the name of the version in front of the nvm install command like below.</p>



<pre class="wp-block-verse">nvm install 12.18.0</pre>



<p>To get list of all installed versions of Node.js on our system hit</p>



<pre class="wp-block-verse">nvm ls</pre>



<p>Output:</p>



<pre class="wp-block-verse">sabir@Ubuntu20:~$ nvm ls<br>v12.18.0<br>-&gt; v14.4.0<br>system<br>default -&gt; lts/* (-&gt; v12.18.0)<br>node -&gt; stable (-&gt; v14.4.0) (default)<br>stable -&gt; 14.4 (-&gt; v14.4.0) (default)<br>iojs -&gt; N/A (default)<br>unstable -&gt; N/A (default)<br>lts/* -&gt; lts/erbium (-&gt; v12.18.0)<br>lts/argon -&gt; v4.9.1 (-&gt; N/A)<br>lts/boron -&gt; v6.17.1 (-&gt; N/A)<br>lts/carbon -&gt; v8.17.0 (-&gt; N/A)<br>lts/dubnium -&gt; v10.21.0 (-&gt; N/A)<br>lts/erbium -&gt; v12.18.0</pre>



<p>If you want to use different version from installed hit</p>



<pre class="wp-block-verse">nvm use 14.4.0</pre>



<p>For removing any version hit</p>



<pre class="wp-block-verse">nvm uninstall 12.18.0</pre>



<h3><strong>Step 5: Install Node.js by Ubuntu Repository</strong></h3>



<p>As this is available on Ubuntu repository, so its fast and easy to install hit the below command.</p>



<pre class="wp-block-verse">sudo apt update</pre>



<pre class="wp-block-verse">sudo apt install -y nodejs</pre>



<p>Verify the version by</p>



<pre class="wp-block-verse">node -v</pre>



<p>So, this is how you can install Node.js on Ubuntu 20.04 using different methods.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-node-js-on-ubuntu-20-04/">How To Install Node.js on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-node-js-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
