<?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 nodejs Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/install-nodejs/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 05 Aug 2019 20:17:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>How to install Nodejs on Ubuntu 18.04 LTS / Ubuntu 19.04?</title>
		<link>https://www.osradar.com/how-to-install-nodejs-on-ubuntu-18-04-lts-linux-mint-19/</link>
					<comments>https://www.osradar.com/how-to-install-nodejs-on-ubuntu-18-04-lts-linux-mint-19/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 02 May 2019 05:30:05 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[install nodejs]]></category>
		<category><![CDATA[node.js]]></category>
		<category><![CDATA[NodeJS]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=5483</guid>

					<description><![CDATA[<p>If you&#8217;re a developer or just starting out in that world, you&#8217;ve probably heard of node.js, this fantastic platform built on Chrome&#8217;s JavaScript interpreter to quickly and easily build scalable network applications. It runs on the server side, and thus allows the server and desktop applications to communicate via Javascript. Thanks to its simplicity and [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-nodejs-on-ubuntu-18-04-lts-linux-mint-19/">How to install Nodejs on Ubuntu 18.04 LTS / Ubuntu 19.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>If you&#8217;re a developer or just starting out in that world, you&#8217;ve probably heard of <strong>node.js</strong>, this fantastic platform built on Chrome&#8217;s JavaScript interpreter to quickly and easily build scalable network applications. It runs on the server side, and thus allows the server and desktop applications to communicate via Javascript.</p>
<p>Thanks to its simplicity and ease of use, node.js is reaching great levels of popularity and is even positioned as a direct rival to PHP.</p>
<p>Node.JS has its own server and maintains a single instance of it, this means a much more efficient use of resources and a much faster response to simultaneous connections. It is multiplatform allowing its installation in almost any operating system in pc.</p>
<p>For this tutorial we will use Ubuntu 18.04 to install node.js.</p>
<h3>3 ways to reach the goal!!</h3>
<p>There are three ways to install node.js. The choice will depend on your level of knowledge and what you really want for your computer. The options are 3: use the official repositories o ubuntu, use the external PPA or install it via NVM.</p>
<h4>1.- Using the official Ubuntu repositories</h4>
<p>This method is safer, more stable and easier but does not provide the flexibility that many would like. This is because over time the installed version could be considered obsolete.</p>
<p>First we must open a terminal. Then we proceed to update the system in order to have the latest security patches.</p>
<pre class="">sudo apt update &amp;&amp; sudo apt upgrade</pre>
<figure id="attachment_5485" aria-describedby="caption-attachment-5485" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5485" src="https://www.osradar.com/wp-content/uploads/2018/08/1-8.png" alt="1.- Upgrading the system" width="1366" height="740" srcset="https://www.osradar.com/wp-content/uploads/2018/08/1-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/08/1-8-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/1-8-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/1-8-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/1-8-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/1-8-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/1-8-775x420.png 775w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5485" class="wp-caption-text">1.- Upgrading the system</figcaption></figure>
<p>Next we proceed to install node.js from the official repositories with:</p>
<pre class="">sudo apt install nodejs</pre>
<figure id="attachment_5486" aria-describedby="caption-attachment-5486" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5486" src="https://www.osradar.com/wp-content/uploads/2018/08/2-8.png" alt="2.- Installing node.js" width="1366" height="740" srcset="https://www.osradar.com/wp-content/uploads/2018/08/2-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/08/2-8-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/2-8-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/2-8-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/2-8-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/2-8-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/2-8-775x420.png 775w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5486" class="wp-caption-text">2.- Installing node.js</figcaption></figure>
<p>This will install node.js. However, in many cases you need your NPM package manager which is not installed by default with this method. For this we write:</p>
<pre class="">sudo apt install npm</pre>
<figure id="attachment_5487" aria-describedby="caption-attachment-5487" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5487" src="https://www.osradar.com/wp-content/uploads/2018/08/3-8.png" alt="3.- Installing npm" width="1366" height="740" srcset="https://www.osradar.com/wp-content/uploads/2018/08/3-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/08/3-8-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/3-8-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/3-8-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/3-8-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/3-8-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/3-8-775x420.png 775w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5487" class="wp-caption-text">3.- Installing npm</figcaption></figure>
<p>Finally we can consult the installed version of node.js</p>
<pre class="">nodejs -v</pre>
<figure id="attachment_5488" aria-describedby="caption-attachment-5488" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5488" src="https://www.osradar.com/wp-content/uploads/2018/08/4-7.png" alt="4.- checking the installed version" width="1366" height="740" srcset="https://www.osradar.com/wp-content/uploads/2018/08/4-7.png 1366w, https://www.osradar.com/wp-content/uploads/2018/08/4-7-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/4-7-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/4-7-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/4-7-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/4-7-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/4-7-775x420.png 775w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5488" class="wp-caption-text">4.- checking the installed version</figcaption></figure>
<h4>2.- Using PPA</h4>
<p>For more recent versions of node.js we usually use this installation method. Recent versions of node.js provide us with security updates as well as more improvements than ever before. If you have installed node.js before, you must uninstall it.</p>
<p>First we must add the repository in question. To do this in a terminal, we write:</p>
<pre class="">cd ~
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -</pre>
<p>In this case we chose version 10.x because it is a higher version than the official repositories, but you can check the rest of the versions supported by the PPA <a href="https://github.com/nodesource/distributions">here</a></p>
<figure id="attachment_5489" aria-describedby="caption-attachment-5489" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5489" src="https://www.osradar.com/wp-content/uploads/2018/08/5-8.png" alt="5.- Using a ppa for installing node.js" width="1366" height="740" srcset="https://www.osradar.com/wp-content/uploads/2018/08/5-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/08/5-8-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/5-8-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/5-8-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/5-8-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/5-8-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/5-8-775x420.png 775w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5489" class="wp-caption-text">5.- Using a ppa for installing node.js</figcaption></figure>
<p>Then we proceed to install it:</p>
<pre class="">sudo apt install nodejs</pre>
<p>And finally we check the installed version.</p>
<pre class="">nodejs -v</pre>
<figure id="attachment_5490" aria-describedby="caption-attachment-5490" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5490" src="https://www.osradar.com/wp-content/uploads/2018/08/6-7.png" alt="6.- Nodejs installed" width="1366" height="740" srcset="https://www.osradar.com/wp-content/uploads/2018/08/6-7.png 1366w, https://www.osradar.com/wp-content/uploads/2018/08/6-7-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/6-7-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/6-7-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/6-7-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/6-7-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/6-7-775x420.png 775w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5490" class="wp-caption-text">6.- Nodejs installed</figcaption></figure>
<p>With this method, there is no need to install npm separately. In addition we install a higher version of node.js</p>
<h4>3.- Installing node.js using NVM</h4>
<p>Using NVM we can have more flexibility to install node.js because we can choose which version to install from a quick and easy way.</p>
<p>First we can check on your github page that we can download NVM in two ways, using wget or curl. We&#8217;ll use curl.</p>
<pre class="">curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh <span class="pl-k">|</span> bash</pre>
<figure id="attachment_5491" aria-describedby="caption-attachment-5491" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5491" src="https://www.osradar.com/wp-content/uploads/2018/08/7-8.png" alt="7.- Getting nvm" width="1366" height="740" srcset="https://www.osradar.com/wp-content/uploads/2018/08/7-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/08/7-8-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/7-8-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/7-8-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/7-8-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/7-8-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/7-8-775x420.png 775w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5491" class="wp-caption-text">7.- Getting NVM</figcaption></figure>
<p>At the end of the installation, you will create a hidden nvm folder. Now to use nvm we must do:</p>
<pre class="">source ~/.profile</pre>
<figure id="attachment_5492" aria-describedby="caption-attachment-5492" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-5492" src="https://www.osradar.com/wp-content/uploads/2018/08/8-6.png" alt="8.- source profile file" width="1366" height="740" srcset="https://www.osradar.com/wp-content/uploads/2018/08/8-6.png 1366w, https://www.osradar.com/wp-content/uploads/2018/08/8-6-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/8-6-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/8-6-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/8-6-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/8-6-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/08/8-6-775x420.png 775w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-5492" class="wp-caption-text">8.- source profile file</figcaption></figure>
<p>Now we can install different versions of node.js</p>
<pre class="">nvm ls-remote</pre>
<figure id="attachment_11963" aria-describedby="caption-attachment-11963" style="width: 1015px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-11963 size-full" src="https://www.osradar.com/wp-content/uploads/2018/08/ab.png" alt="9.- Showing nvm list" width="1015" height="732" srcset="https://www.osradar.com/wp-content/uploads/2018/08/ab.png 1015w, https://www.osradar.com/wp-content/uploads/2018/08/ab-300x216.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/ab-768x554.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/ab-324x235.png 324w, https://www.osradar.com/wp-content/uploads/2018/08/ab-696x502.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/ab-582x420.png 582w" sizes="(max-width: 1015px) 100vw, 1015px" /><figcaption id="caption-attachment-11963" class="wp-caption-text">9.- Showing nvm list</figcaption></figure>
<p>We will install the latest stable version:We will install the latest stable version:</p>
<pre class="">nvm install 10.15.3</pre>
<figure id="attachment_11964" aria-describedby="caption-attachment-11964" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-11964 size-full" src="https://www.osradar.com/wp-content/uploads/2018/08/ac.png" alt="10.- Installing the lastest version of node.js" width="1365" height="223" srcset="https://www.osradar.com/wp-content/uploads/2018/08/ac.png 1365w, https://www.osradar.com/wp-content/uploads/2018/08/ac-300x49.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/ac-768x125.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/ac-1024x167.png 1024w, https://www.osradar.com/wp-content/uploads/2018/08/ac-696x114.png 696w, https://www.osradar.com/wp-content/uploads/2018/08/ac-1068x174.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-11964" class="wp-caption-text">10.- Installing the lastest version of node.js</figcaption></figure>
<p>With the command above we also install the npm.</p>
<p>We proceed to verify the installed version.</p>
<pre class="">node -v</pre>
<figure id="attachment_11965" aria-describedby="caption-attachment-11965" style="width: 815px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-11965 size-full" src="https://www.osradar.com/wp-content/uploads/2018/08/ad.png" alt="11.- nodejs version installed" width="815" height="152" srcset="https://www.osradar.com/wp-content/uploads/2018/08/ad.png 815w, https://www.osradar.com/wp-content/uploads/2018/08/ad-300x56.png 300w, https://www.osradar.com/wp-content/uploads/2018/08/ad-768x143.png 768w, https://www.osradar.com/wp-content/uploads/2018/08/ad-696x130.png 696w" sizes="(max-width: 815px) 100vw, 815px" /><figcaption id="caption-attachment-11965" class="wp-caption-text">11.- nodejs version installed</figcaption></figure>
<p>As a conclusion we can say that node.js is a very popular implementation in the field of web development, and its installation is really easy in Ubuntu 18.04 which in turn is a GNU/LINUX distribution widely used by developers around the world.</p>
<p>Please share this article on your social networks.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-nodejs-on-ubuntu-18-04-lts-linux-mint-19/">How to install Nodejs on Ubuntu 18.04 LTS / Ubuntu 19.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-nodejs-on-ubuntu-18-04-lts-linux-mint-19/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
