<?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>NodeJS Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/nodejs/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 30 Aug 2021 15:57:33 +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>Install Yarn on Debian 11</title>
		<link>https://www.osradar.com/yarn-nodejs-package-debian/</link>
					<comments>https://www.osradar.com/yarn-nodejs-package-debian/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sun, 05 Sep 2021 23:56:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[NodeJS]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[web]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32077</guid>

					<description><![CDATA[<p>Hello, friends. Installing Yarn on Debian 11 opens the door to NodeJS project management in a fast and efficient way. So, in this post, I will tell you what it is and how to install it so you can get it ready for your projects. What is Yarn? Yarn is a package manager that doubles [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/yarn-nodejs-package-debian/">Install Yarn on Debian 11</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-line-data">Hello, friends. Installing Yarn on Debian 11 opens the door to NodeJS project management in a fast and efficient way. So, in this post, I will tell you what it is and how to install it so you can get it ready for your projects.</p>



<h2 class="code-line"><a id="What_is_Yarn_2"></a>What is Yarn?</h2>



<p class="has-line-data"><a href="https://yarnpkg.com" target="_blank" rel="noreferrer noopener">Yarn </a>is a package manager that doubles down as a project manager. Whether you work on one-shot projects or large monorepos, as a hobbyist or an enterprise user, we’ve got you covered.</p>



<p class="has-line-data">Its main advantages are stability, speed of work, and ease of use. Another aspect to take into account is that Yarn is open source so we can examine the source code of the application without any problems.</p>



<p class="has-line-data">On the other hand, Yarn has support for plugins that further increase the functionality of the application.</p>



<p class="has-line-data">So, let’s go for it.</p>



<h2 class="code-line"><a id="Install_Yarn_on_Debian_11_12"></a>Install Yarn on Debian 11</h2>



<p class="has-line-data">The method recommended by the official Yarn documentation is using <code>npm</code> and therefore NodeJS. So, this has to be our first step.</p>



<p class="has-line-data"><a href="https://www.osradar.com/nodejs-debian-11-bullseye-javascript/" target="_blank" rel="noreferrer noopener">How to install NodeJS on Debian 11?</a></p>



<p class="has-line-data">After the installation is finished, you can install Yarn on Debian 11 by executing the following command</p>



<pre class="wp-block-preformatted">sudo npm install -g yarn
> yarn@1.22.11 preinstall /usr/lib/node_modules/yarn
> :; (node ./preinstall.js > /dev/null 2>&amp;1 || true)

/usr/bin/yarn -> /usr/lib/node_modules/yarn/bin/yarn.js
/usr/bin/yarnpkg -> /usr/lib/node_modules/yarn/bin/yarn.js
+ yarn@1.22.11
added 1 package in 1.073s</pre>



<p class="has-line-data">Then you can check the installed version with the following command</p>



<pre class="wp-block-preformatted">yarn --version
1.22.11</pre>



<p class="has-line-data">To always update Yarn to the latest version, you have to run the following command</p>



<pre class="wp-block-preformatted">yarn set version latest</pre>



<h2 class="code-line"><a id="Using_Yarn_30"></a>Using Yarn</h2>



<p class="has-line-data">Once we have Yarn installed on our computer the next thing to do is to use it a little bit.</p>



<p class="has-line-data">Create a new folder for the new project. For example <code>project</code>.</p>



<pre class="wp-block-preformatted">mkdir project</pre>



<p class="has-line-data">Access the folder and start the yarn project as follows</p>



<pre class="wp-block-preformatted">cd project
yarn init</pre>



<p class="has-line-data">And to add dependencies to the newly created project you can run</p>



<pre class="wp-block-preformatted">yarn add [package]</pre>



<p class="has-line-data">Or specify a specific version</p>



<pre class="wp-block-preformatted">yarn add [package]@[version]</pre>



<p class="has-line-data">If you want to remove any dependencies, just run</p>



<pre class="wp-block-preformatted">yarn remove [package]</pre>



<p class="has-line-data">To install all dependencies</p>



<pre class="wp-block-preformatted">yarn
yarn install</pre>



<p class="has-line-data">But you can also update the dependencies</p>



<pre class="wp-block-preformatted">yarn up [package]</pre>



<p class="has-line-data">Or by specifying a version</p>



<pre class="wp-block-preformatted">yarn up [package]@[version]</pre>



<p class="has-line-data">Finally, you can access all the Yarn commands by consulting the help</p>



<pre class="wp-block-preformatted">yarn help</pre>



<figure class="wp-block-image size-full"><img loading="lazy" width="988" height="689" src="https://www.osradar.com/wp-content/uploads/2021/08/1-17.png" alt="1.- Yarn on Debian 11" class="wp-image-32078" srcset="https://www.osradar.com/wp-content/uploads/2021/08/1-17.png 988w, https://www.osradar.com/wp-content/uploads/2021/08/1-17-300x209.png 300w, https://www.osradar.com/wp-content/uploads/2021/08/1-17-768x536.png 768w, https://www.osradar.com/wp-content/uploads/2021/08/1-17-696x485.png 696w" sizes="(max-width: 988px) 100vw, 988px" /><figcaption>1.- Yarn on Debian 11</figcaption></figure>



<p class="has-line-data">So, enjoy it.</p>



<h2 class="code-line"><a id="Conclusion_74"></a>Conclusion</h2>



<p class="has-line-data">Yarn is a fast tool that allows us to manage the packages of our web project that is more and more used worldwide. In this post, you learned how to install it on Debian 11.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/yarn-nodejs-package-debian/">Install Yarn on Debian 11</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/yarn-nodejs-package-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install NodeJS on Debian 11?</title>
		<link>https://www.osradar.com/nodejs-debian-11-bullseye-javascript/</link>
					<comments>https://www.osradar.com/nodejs-debian-11-bullseye-javascript/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 26 Aug 2021 23:17:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[NodeJS]]></category>
		<category><![CDATA[Programming]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=31848</guid>

					<description><![CDATA[<p>Hello dear friends. NodeJS technology is one of the most used technologies on the internet. Besides this, it is the basis of many interesting applications that exist. So, in this post, you will learn how to install NodeJS on Debian 11. For this, we will show you two different methods. NodeJS is a technology that [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/nodejs-debian-11-bullseye-javascript/">How to install NodeJS on Debian 11?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-line-data">Hello dear friends. NodeJS technology is one of the most used technologies on the internet. Besides this, it is the basis of many interesting applications that exist. So, in this post, you will learn how to install NodeJS on Debian 11. For this, we will show you two different methods.</p>



<p class="has-line-data"><a href="https://nodejs.org/" target="_blank" rel="noreferrer noopener">NodeJS </a>is a technology that allows running Javascript on the server-side using Google’s V8 engine. It is a real revolution in the way web applications are developed because it reduces the asymmetry of client and server performance.</p>



<p class="has-line-data">Many important forms such as Linkedin or eBay were created using this technology. This shows us the power of NodeJS.</p>



<p class="has-line-data">An advantage of NodeJS is that its syntax is similar to that of Javascript and therefore its learning curve decreases a lot.</p>



<h2 class="code-line"><a id="Install_NodeJS_on_Debian_11__First_method_8"></a>Install NodeJS on Debian 11 &#8211; First method</h2>



<p class="has-line-data">As NodeJS is widely supported on Linux, it is common to find it in the official repositories of almost any distribution. In this case, it is also available from the official Debian 11 repositories so the installation becomes easier.</p>



<p class="has-line-data">So, open a terminal emulator or connect via SSH to Debian 11 and update it first:</p>



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



<p class="has-line-data">Now, you can install NodeJS as follows</p>



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



<p class="has-line-data">This way, you will be shown many of the dependencies to install. Although there are a lot of them, the reality is that the installation will be very fast.</p>



<p class="has-line-data">When finished, you can check the installed version with the command:</p>



<pre class="wp-block-preformatted">node --version
v12.22.5</pre>



<p class="has-line-data">This is the fastest and safest way to install NodeJS, but it is not the only one, nor is it necessarily the best.</p>



<h3 class="code-line"><a id="Getting_recent_versions_of_NodeJS_on_Debian_11_30"></a>Getting recent versions of NodeJS on Debian 11</h3>



<p class="has-line-data">By adding an external repository, it is possible to install a recent version of NodeJS. At the time of writing this post, the <code>14.x</code> branch is the LTS branch, i.e. the one recommended for production environments, and the <code>16.x</code> branch is the most recent one. We can install them in both cases.</p>



<p class="has-line-data">So, if you already have NodeJS installed, uninstall it as follows:</p>



<pre class="wp-block-preformatted">sudo apt remove nodejs</pre>



<p class="has-line-data">And to install the LTS series (currently <code>14.x</code>) run these commands:</p>



<pre class="wp-block-preformatted">curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo bash -
sudo apt install nodejs</pre>



<p class="has-line-data">But if you want to install the latest version of NodeJS which is currently <code>16.7.0</code> then run these commands:</p>



<pre class="wp-block-preformatted">curl -fsSL https://deb.nodesource.com/setup_current.x | sudo bash -
sudo apt install nodejs</pre>



<p class="has-line-data">In any case, you can choose the one you like the most, and when finishing check the version installed with the command</p>



<pre class="wp-block-preformatted">node --version</pre>



<p class="has-line-data">This way NodeJS will be installed on your system and ready for whatever you need.</p>



<p class="has-line-data">Enjoy it.</p>



<h2 class="code-line"><a id="Conclusion_56"></a>Conclusion</h2>



<p class="has-line-data">NodeJS is a cutting-edge technology for the development of web applications. In this post, you have learned two different ways to install it on Debian 11</p>



<p class="has-line-data">Please share this post with your friends and join our Telegram channel.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/nodejs-debian-11-bullseye-javascript/">How to install NodeJS on Debian 11?</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/nodejs-debian-11-bullseye-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Reveal.js on Ubuntu 20.04 / Debian 10?</title>
		<link>https://www.osradar.com/install-revealjs-ubuntu-debian/</link>
					<comments>https://www.osradar.com/install-revealjs-ubuntu-debian/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 15 Jul 2021 02:20:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[NodeJS]]></category>
		<category><![CDATA[reveal.js]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=26753</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install reveal.js on Ubuntu 20.04 / Debian 10. With this software, you will be able to create presentations using HTML and CSS. reveal.js is an open-source HTML presentation framework. It&#8217;s a tool that enables anyone with a web browser to create fully-featured and beautiful presentations [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-revealjs-ubuntu-debian/">How to install Reveal.js on Ubuntu 20.04 / Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. In this post, you will learn how to install reveal.js on Ubuntu 20.04 / Debian 10. With this software, you will be able to create presentations using HTML and CSS.</p>



<p><a href="https://revealjs.com/" target="_blank" rel="noreferrer noopener">reveal.js</a> is an open-source HTML presentation framework. It&#8217;s a tool that enables anyone with a web browser to create fully-featured and beautiful presentations for free.</p>



<p>Presentations made with reveal.js are built on open web technologies. That means anything you can do on the web, you can do in your presentation. Change styles with CSS, include an external web page using an &lt;iframe&gt; or add your own custom behavior using our JavaScript API.</p>



<p>So in these times of pandemic, this tool can be quite useful for many students and teachers.</p>



<h2>Install Reveal.js on Ubuntu 20.04 / Debian 10</h2>



<h3>1.- Install required packages</h3>



<p>Before starting the installation of Reveal.js it is necessary to install some packages first.</p>



<p>So, open a terminal, and run the following command</p>



<pre class="wp-block-preformatted">sudo apt install curl gnupg2 unzip git</pre>



<p>Now we have to install <a href="https://www.osradar.com/how-to-install-node-js-on-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">NodeJS</a> version 14. For this, we have to add the nodejs repository.</p>



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



<p>This will start the whole process of adding the repository along with its GPG key.</p>



<p>Once the process is finished, you can install NodeJS</p>



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



<p>You can check the installed version by running the following command:</p>



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



<p>Output:</p>



<pre class="wp-block-preformatted">v14.17.2</pre>



<h3>2.- Download and install Reveal.js on Ubuntu 20.04 / Debian 10</h3>



<p>Now we can start the download and for that, we&#8217;ll clone the Reveal.js repository with Git.</p>



<pre class="wp-block-preformatted">git clone https://github.com/hakimel/reveal.js.git</pre>



<p>Once the cloning is done, we will have a folder called revel.js access it and install the application.</p>



<pre class="wp-block-preformatted">cd reveal.js
sudo npm install</pre>



<p>After you have installed all the dependencies of the application, you can run it using the following command.</p>



<pre class="wp-block-preformatted">npm start</pre>



<p>And you will get a screen output similar to this one:</p>



<pre class="wp-block-preformatted">   reveal.js@4.1.3 start /home/angelo/reveal.js
   gulp serve 
 [22:31:04] Using gulpfile ~/reveal.js/gulpfile.js
 [22:31:04] Starting 'serve'…
 [22:31:04] Starting server…
 [22:31:04] Server started http://0.0.0.0:8000
 [22:31:04] LiveReload started on port 35729
 [22:31:04] Running server</pre>



<p>This indicates that reveal is running through port <code>8000</code> which is the default port. You can also change this port by using the <code>--port</code></p>



<pre class="wp-block-preformatted">npm start -- --port=8001</pre>



<p>Optionally, you can create a new system service to manage reveal.</p>



<pre class="wp-block-preformatted">sudo nano /lib/systemd/system/reveal.service</pre>



<p>And add the following.</p>



<pre class="wp-block-preformatted">[Service]
Type=simple
User=root
Restart=on-failure
WorkingDirectory=/home/angelo/reveal.js
ExecStart=npm start</pre>



<p>Save the changes, close the editor. And refresh systemd. Please replace <code>angelo </code>with the current user </p>



<pre class="wp-block-preformatted">sudo systemctl daemon-reload</pre>



<p>Now you can start, stop, and enable it as a system service.</p>



<p>Now, open your web browser and go to <code>http://your-server:8000</code> and you will see the default reveal.js presentation which indicates that the installation has been a success.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="523" src="https://www.osradar.com/wp-content/uploads/2020/12/3-6-1024x523.png" alt="2.- Reveal.js on Ubuntu 20.04" class="wp-image-26866" srcset="https://www.osradar.com/wp-content/uploads/2020/12/3-6-1024x523.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/3-6-300x153.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/3-6-768x392.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/3-6-696x356.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/3-6-1068x546.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/3-6.png 1364w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Reveal.js on Ubuntu 20.04</figcaption></figure>



<p>So, enjoy it.</p>



<h2>Conclusion</h2>



<p>In this time of the pandemic, in many places education has become distant. Well, there are many tools to help with this. One of them is to reveal that it is presented to us as a great alternative to PowerPoint for the creation of presets.</p>



<p>So, now you know how to install it. You can now create fantastic presentations using web technologies.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-revealjs-ubuntu-debian/">How to install Reveal.js on Ubuntu 20.04 / Debian 10?</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/install-revealjs-ubuntu-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install GulpJS on Ubuntu 20.04</title>
		<link>https://www.osradar.com/install-gulpjs-ubuntu/</link>
					<comments>https://www.osradar.com/install-gulpjs-ubuntu/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 07 May 2021 00:08:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[gulpjs]]></category>
		<category><![CDATA[NodeJS]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=29886</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install GulpJS on Ubuntu 20.04 quickly and easily. In short, Gulp is a tool to automate tasks, mostly on the front-end layer. It is developed in javascript and works on NodeJS so it can run on any system. By using gulp streams, you can apply [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-gulpjs-ubuntu/">Install GulpJS 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>Hello, friends. In this post, you will learn how to install GulpJS on Ubuntu 20.04 quickly and easily.</p>



<p>In short, <strong><a href="https://gulpjs.com/" target="_blank" rel="noreferrer noopener">Gulp</a> is a tool to automate tasks, mostly on the front-end layer</strong>. It is developed in javascript and works on NodeJS so it can run on any system.</p>



<p>By using gulp streams, you can apply many transformations to your files while in memory before anything is written to the disk—significantly speeding up your build process.</p>



<p>This is why many developers include it in their projects as it automates certain repetitive tasks.</p>



<h2 id="installing-gulp.js-on-ubuntu-20.04"><a name="installing-gulp.js-on-ubuntu-20.04" href="#installing-gulp.js-on-ubuntu-20.04"></a>Installing GulpJS on Ubuntu 20.04</h2>



<h3 id="install-nodejs-on-ubuntu-20.04"><a href="#install-nodejs-on-ubuntu-20.04" name="install-nodejs-on-ubuntu-20.04"></a>Install NodeJS on Ubuntu 20.04</h3>



<p>This tool is built with <a href="https://www.osradar.com/tag/nodejs" target="_blank" rel="noreferrer noopener">NodeJS</a>, so we have to install it on our system.</p>



<p>So, in a terminal, make sure you have Ubuntu up to date.</p>



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



<p>Also, install the <code>software-properties-common</code> package which is usually already included, but it’s better to be sure.</p>



<pre class="wp-block-preformatted">sudo apt install software-properties-common</pre>



<p>In this post, we will be working with <code>14.x</code> version of NodeJS, so we have to install it via the external repository provided by the developers. To add the repository, we have to run the following command:</p>



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



<p>Now we can install NodeJS by running the following command.</p>



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



<p>Check the <code>nodejs</code> and <code>npm</code> versions to see if the process was successful.</p>



<pre class="wp-block-preformatted">node --version
v14.16.1</pre>



<pre class="wp-block-preformatted"><code data-origin="<pre&gt;<code&gt;node --version 
v14.16.1

npm --version 
6.14.12
</code&gt;</pre&gt;
<p&gt;">npm --version </code>
<code data-origin="<pre&gt;<code&gt;node --version 
v14.16.1

npm --version 
6.14.12
</code&gt;</pre&gt;
<p&gt;">6.14.12</code></pre>



<h3 id="install-gulp.js-on-ubuntu"><a name="install-gulp.js-on-ubuntu" href="#install-gulp.js-on-ubuntu"></a>Install GulpJS on Ubuntu</h3>



<p>Now we need to create a folder where the Gulp installation will be. Then we need to access it.</p>



<pre class="wp-block-preformatted">mkdir project
cd project</pre>



<p><strong>Note: you can use a name other than project.</strong></p>



<p>Then, start the NodeJS project.</p>



<pre class="wp-block-preformatted">npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See `npm help init` for definitive documentation on these fields
and exactly what they do.

Use `npm install &lt;pkg>` afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
package name: (project) 
version: (1.0.0) 
description: Sample for Osradar
entry point: (index.js) 
test command: 
git repository: 
keywords: 
author: 
license: (ISC) </pre>



<p>The output will be a series of questions about the information related to the project we just started.</p>



<p>And the <code>package.json</code> file will be created with the information you supplied.</p>



<p>Now proceed to install <code>gulp-cli</code> which is one of the packages needed to use Gulp.</p>



<pre class="wp-block-preformatted">sudo npm install -g gulp-cli
+ gulp-cli@2.3.0
added 252 packages from 165 contributors in 20.212s</pre>



<p>And install as such, the Gulp package</p>



<pre class="wp-block-preformatted">sudo npm install --save-dev gulp
+ gulp@4.0.2
added 326 packages from 226 contributors and audited 327 packages in 17.689s</pre>



<p>After this, you can verify the installation by running:</p>



<pre class="wp-block-preformatted">gulp --version
CLI version: 2.3.0
Local version: 4.0.2</pre>



<h3 id="testing-the-installation"><a href="#testing-the-installation" name="testing-the-installation"></a>Testing the installation</h3>



<p>Now let’s proceed with an example to see if everything went well, create a file called <code>gulpfile.js</code> with your favorite text editor. I will use <a href="https://www.osradar.com/install-latest-version-nano-ubuntu/" target="_blank" rel="noreferrer noopener">nano</a>.</p>



<pre class="wp-block-preformatted">nano gulpfile.js</pre>



<p>And add the following:</p>



<pre class="wp-block-preformatted">var gulp = require('gulp');

gulp.task('sample', function(done) {
  console.log('Hello World from Osradar');
  done();
});</pre>



<p>In this case, I’ve defined a task that just prints a greeting on the screen.</p>



<p>To run it, just type</p>



<pre class="wp-block-preformatted">gulp sample</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">[18:38:09] Using gulpfile ~/project/gulpfile.js
[18:38:09] Starting 'sample'...
Hello World from Osradar
[18:38:09] Finished 'sample' after 1.64 ms</pre>



<p>So, Gulp is installed and ready to be useful.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>Gulp contributes to the automation of many tasks that a front-end developer may find tedious. This makes it a valuable tool for many of them. In this post, we have taken you through a series of steps to help you install Gulp on Ubuntu.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-gulpjs-ubuntu/">Install GulpJS 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/install-gulpjs-ubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to set up your NodeJS application for production</title>
		<link>https://www.osradar.com/set-up-nodejs-application-production/</link>
					<comments>https://www.osradar.com/set-up-nodejs-application-production/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 04 May 2021 04:06:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[NodeJS]]></category>
		<category><![CDATA[Production]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Ubuntu 20.04 tutorials]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=29777</guid>

					<description><![CDATA[<p>Hello friends. It comes to this point in life, you are a NodeJS developer and you want to deploy your application in production, how to do it? Well in this post you will learn how to set up a NodeJS application for production on an Ubuntu 20.04 server. We have talked a lot about NodeJS [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/set-up-nodejs-application-production/">How to set up your NodeJS application for production</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello friends. It comes to this point in life, you are a NodeJS developer and you want to deploy your application in production, how to do it? Well in this post you will learn how to set up a NodeJS application for production on an Ubuntu 20.04 server.</p>



<p><a href="https://www.osradar.com/tag/nodejs" target="_blank" rel="noreferrer noopener">We have talked a lot about NodeJS</a> in this blog because it is a new technology that allows us to create many complex web applications quickly.</p>



<p class="has-drop-cap">NodeJS is a technology that allows running Javascript on the server-side using Google’s V8 engine. It is a real revolution in the way web applications are developed because it reduces the asymmetry of client and server performance.</p>



<p>Many important forms such as Linkedin or eBay were created using this technology. This shows us the power of NodeJS.</p>



<p>An advantage of NodeJS is that its syntax is similar to that of <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank" rel="noreferrer noopener">Javascript</a> and therefore its learning curve decreases a lot.</p>



<h2 id="set-up-your-nodejs-application-on-ubuntu-20.04"><a name="set-up-your-nodejs-application-on-ubuntu-20.04" href="#set-up-your-nodejs-application-on-ubuntu-20.04"></a>Set up your NodeJS application for production on Ubuntu 20.04</h2>



<p>The first thing we have to do is to install NodeJS on the server where we want our application to be. To do this, we will use the 14.x branch, which is one of the most modern ones.</p>



<p>To do this, connect via SSH to your server and update the distribution</p>



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



<p>Now, add the NodeJS repository for the 14.x branch by downloading and executing the official script</p>



<pre class="wp-block-preformatted">curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh</pre>



<p>This will start the whole process and at the end, you will be able to check the version of NodeJS installed by running this command:</p>



<pre class="wp-block-preformatted">node -v
v14.16.1</pre>



<p>It is important that we also check the installed version of <code>npm</code>.</p>



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



<p>Now we have the software installed, let’s see an example of how to deploy our application.</p>



<p>To do this I will create a simple NodeJS file called <code>exmaple.js</code> that displays a <code>hello world</code>.</p>



<pre class="wp-block-preformatted">nano example.js
const http = require('http');

const hostname = 'localhost';
const port = 3000;

const server = http.createServer((req, res) => {
  res.statusCode = 200;
  res.setHeader('Content-Type', 'text/plain');
  res.end('Hello World. Welcome to Osradar\n');
});

server.listen(port, hostname, () => {
  console.log(`Server running at http://${hostname}:${port}/`);
});</pre>



<p>Of course, in your case, you will have several files and all the necessary structures.</p>



<p>To run the application just use this command</p>



<pre class="wp-block-preformatted">node example.js</pre>



<p>And you will get an output screen similar to this one:</p>



<pre class="wp-block-preformatted">Server running at http://localhost:3000/</pre>



<p>To stop the execution of the program, just press <code>CTRL + C</code>.</p>



<p>Running a production NodeJS application in this way is not recommended. The normal way is to use <code>pm2</code> which allows us to run it as a system service.</p>



<p>To do this, let’s install it on the system.</p>



<pre class="wp-block-preformatted">sudo npm install pm2@latest -g</pre>



<p>You will get an output screen similar to this one</p>



<pre class="wp-block-preformatted">+ pm2@4.5.6
added 175 packages from 194 contributors in 13.798s</pre>



<p>And now you can start running the created program:</p>



<pre class="wp-block-preformatted">pm2 start example.js</pre>



<p>You will get an output screen similar to this.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="497" src="https://www.osradar.com/wp-content/uploads/2021/05/1-1024x497.png" alt="1.- Running the NodeJS application" class="wp-image-29840" srcset="https://www.osradar.com/wp-content/uploads/2021/05/1-1024x497.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/1-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/1-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/1-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/1-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/1.png 1229w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Running the NodeJS application</figcaption></figure>



<p>Remember that this is an example and that you have to execute these commands from the folder where your project is and with the main execution file of your application.</p>



<h2 id="configuring-nginx-as-the-reverse-proxy"><a href="#configuring-nginx-as-the-reverse-proxy" name="configuring-nginx-as-the-reverse-proxy"></a>Configuring Nginx as the reverse proxy</h2>



<p>This step, although optional, is recommended so that our application can be accessed without any problems. To do this, install Nginx</p>



<pre class="wp-block-preformatted">sudo apt install nginx</pre>



<p>And then, create a new configuration file for our application. In this case, I will call the file <code>node</code> but you can name it whatever you want.</p>



<pre class="wp-block-preformatted">sudo nano /etc/nginx/sites-available/node</pre>



<p>Now add the following to the file.</p>



<pre class="wp-block-preformatted">server {
    listen 80;
    server_name node.osradar.test;
    location / {
        proxy_pass http://localhost:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}</pre>



<p>Remember to replace the <code>server_name</code> value with the domain you have.</p>



<p>Save your changes and close the text editor.</p>



<p>You can check if the Nginx syntax is correct by running</p>



<pre class="wp-block-preformatted">sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful</pre>



<p>The output on the screen indicates that the syntax is correct and you can continue.</p>



<p>To apply the changes, restart Nginx.</p>



<pre class="wp-block-preformatted">sudo systemctl restart nginx</pre>



<p>Now, open your web browser and log in with your domain name and you will see the application working.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1366" height="669" src="https://www.osradar.com/wp-content/uploads/2021/05/2-1024x502.png" alt="2.- NodeJS application for Production" class="wp-image-29841" srcset="https://www.osradar.com/wp-content/uploads/2021/05/2-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/2-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/2-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/2-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/2-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/2.png 1366w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption>2.- NodeJS application for Production</figcaption></figure>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>In this post, we have shown you how to deploy your NodeJS application on a server. At least you have the basics, from here you have to set up the security policies that your server needs.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/set-up-nodejs-application-production/">How to set up your NodeJS application for production</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/set-up-nodejs-application-production/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install NodeJS on OpenSUSE 15.2</title>
		<link>https://www.osradar.com/install-nodejs-opensuse/</link>
					<comments>https://www.osradar.com/install-nodejs-opensuse/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 03 Mar 2021 00:36:00 +0000</pubDate>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NodeJS]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28885</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install NodeJS on OpenSuse 15.2 A brief review of NodeJS If you are an expert developer or already have some experience with it, you will know it is NodeJS. However, in case you are starting with it, it is a good idea to know what [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nodejs-opensuse/">Install NodeJS on OpenSUSE 15.2</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p><strong>Hello, friends. In this post, you will learn how to install NodeJS on OpenSuse 15.2</strong></p>



<h2 id="a-brief-review-of-nodejs"><a href="#a-brief-review-of-nodejs" name="a-brief-review-of-nodejs"></a>A brief review of NodeJS</h2>



<p>If you are an expert developer or already have some experience with it, you will know it is NodeJS. However, in case you are starting with it, it is a good idea to know what NodeJS is first.</p>



<p><a href="https://nodejs.org/en/" target="_blank" rel="noreferrer noopener">NodeJS</a> is a technology that allows running Javascript on the server-side using Google’s V8 engine. It is a real revolution in the way web applications are developed because it reduces the asymmetry of client and server performance.</p>



<p>Many important forms such as Linkedin or eBay were created using this technology. This shows us the power of NodeJS.</p>



<p>An advantage of NodeJS is that its syntax is similar to that of Javascript and therefore its learning curve decreases a lot.</p>



<h2 id="install-nodejs-on-opensuse---using-the-main-repositories"><a href="#install-nodejs-on-opensuse---using-the-main-repositories" name="install-nodejs-on-opensuse---using-the-main-repositories"></a>Install NodeJS on OpenSUSE &#8211; Using the main repositories</h2>



<p>NodeJS is available from the official distribution repositories. That’s why the process is made easier.</p>



<p>So, open up a terminal and update OpenSUSE</p>



<pre class="wp-block-preformatted">sudo zypper up</pre>



<p>You can then search the repositories for NodeJS to see what packages are available.</p>



<pre class="wp-block-preformatted">sudo zypper search nodejs</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="883" height="584" src="https://www.osradar.com/wp-content/uploads/2021/03/1.png" alt="1.- Installing NodeJS on OpenSUSE" class="wp-image-28887" srcset="https://www.osradar.com/wp-content/uploads/2021/03/1.png 883w, https://www.osradar.com/wp-content/uploads/2021/03/1-300x198.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/1-768x508.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/1-696x460.png 696w" sizes="(max-width: 883px) 100vw, 883px" /><figcaption>1.- Installing NodeJS on OpenSUSE</figcaption></figure>



<p>As you can see we can choose between several available versions like 8, 10, 12, or 14 so it’s your choice.</p>



<p>In this case, I will choose version <code>10</code> and for that, I will run</p>



<pre class="wp-block-preformatted">sudo zypper in nodejs10</pre>



<p>In the end, you will be able to check the installed version with the command</p>



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



<h3 id="with-nvm-we-can-get-any-version-of-nodejs"><a href="#with-nvm-we-can-get-any-version-of-nodejs" name="with-nvm-we-can-get-any-version-of-nodejs"></a>With NVM we can get any version of NodeJS</h3>



<p>Yes, using the NVM tool we can get any version of NodeJS. This is useful if we want to use a particular one for a certain program or to test the latest versions.</p>



<p>To do this, download NVM with the command wget</p>



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

=> Downloading nvm as script to '/home/angelo/.nvm'
=> Appending nvm source string to /home/angelo/.bashrc
=> Appending bash_completion source string to /home/angelo/.bashrc
=> Close and reopen your terminal to start using nvm or run the following to use it now:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] &amp;&amp; \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] &amp;&amp; \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
<code data-origin="<pre&gt;<code&gt;wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
=&gt; Downloading nvm as script to '/home/angelo/.nvm'

=&gt; Appending nvm source string to /home/angelo/.bashrc
=&gt; Appending bash_completion source string to /home/angelo/.bashrc
=&gt; Close and reopen your terminal to start using nvm or run the following to use it now:

export NVM_DIR=&quot;$HOME/.nvm&quot;
[ -s &quot;$NVM_DIR/nvm.sh&quot; ] &amp;&amp; \. &quot;$NVM_DIR/nvm.sh&quot;  # This loads nvm
[ -s &quot;$NVM_DIR/bash_completion&quot; ] &amp;&amp; \. &quot;$NVM_DIR/bash_completion&quot;  # This loads nvm bash_completion

source ~/.bashrc
</code&gt;</pre&gt;
<p&gt;">source ~/.bashrc</code></pre>



<p>At the end of the download and installation, you have to refresh the bashrc file so that the command is available from the full prompt.</p>



<pre class="wp-block-preformatted">source ~/.bashrc</pre>



<p>If you want to check all available NodeJS versions, you can run the following command:</p>



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



<figure class="wp-block-image size-large"><img loading="lazy" width="714" height="518" src="https://www.osradar.com/wp-content/uploads/2021/03/2.png" alt="2.- Using NVM " class="wp-image-28886" srcset="https://www.osradar.com/wp-content/uploads/2021/03/2.png 714w, https://www.osradar.com/wp-content/uploads/2021/03/2-300x218.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/2-696x505.png 696w" sizes="(max-width: 714px) 100vw, 714px" /><figcaption>2.- Using NVM </figcaption></figure>



<p>You will see a long list, and you just have to choose the one you prefer. For testing purposes, I will install <code>14.16.0</code>.</p>



<pre class="wp-block-preformatted">nvm install 14.16.0</pre>



<p>Just like that, we will have NodeJS installed. To check the installed version, just check the installed version.</p>



<pre class="wp-block-preformatted">node -v
v14.16.0</pre>



<p>So, enjoy it</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>NodeJS is a cutting-edge technology for the development of web applications. In this post, you have learned two different ways to install it on <a href="https://www.osradar.com/tag/opensuse" target="_blank" rel="noreferrer noopener">OpenSUSE</a> 15.2</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nodejs-opensuse/">Install NodeJS on OpenSUSE 15.2</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/install-nodejs-opensuse/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install NodeJS on FreeBSD 12?</title>
		<link>https://www.osradar.com/install-nodejs-freebsd-12/</link>
					<comments>https://www.osradar.com/install-nodejs-freebsd-12/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 19 Feb 2020 00:11:00 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freebsd 12]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[node.js]]></category>
		<category><![CDATA[NodeJS]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18212</guid>

					<description><![CDATA[<p>Hello. In this short post, I will show you how to install NodeJS on FreeBSD 12. Also, I will install NPM too. What is NodeJS If you are an expert developer or already have some experience with it, you will know it is NodeJS. However, in case you are starting with it, it is a [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nodejs-freebsd-12/">How to install NodeJS on FreeBSD 12?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Hello. In this short post, I will show you how to install NodeJS on FreeBSD 12. Also, I will install NPM too.</strong></p>
<h2>What is NodeJS</h2>
<p>If you are an expert developer or already have some experience with it, you will know it is NodeJS. However, in case you are starting with it, it is a good idea to know what NodeJS is first.</p>
<p><a href="https://nodejs.org/" rel="noopener">NodeJS</a> is a technology that allows running Javascript on the server-side using Google’s V8 engine. It is a real revolution in the way web applications are developed because it reduces the asymmetry of client and server performance.</p>
<p>Many important forms such as Linkedin or eBay were created using this technology. This shows us the power of NodeJS.</p>
<p>An advantage of NodeJS is that its syntax is similar to that of Javascript and therefore its learning curve decreases a lot.</p>
<p>So, let us start.</p>
<h2>Install NodeJS on FreeBSD 12</h2>
<p>First of all, all the commands we will use require you to be root. So it is a good idea to have sudo enabled and not work directly with the root user.</p>
<p><a href="https://www.osradar.com/enable-sudo-on-freebsd-12/" target="_blank" rel="noopener noreferrer">How to enable sudo on FreeBSD 12?</a></p>
<p>Now it is also convenient to do a system upgrade. Not only to install security patches but also to refresh the repositories.</p>
<pre>:~$ sudo pkg update</pre>
<p>The official FreeBSD repositories include NodeJS. So first we&#8217;ll search for them.</p>
<pre>:~$ sudo pkg search node<br />bitcoinnodestats-g20171121_1   Basic Bitcoin node status and statistics web application<br />gstreamer-plugins-annodex-0.10.31_2,3 Gstreamer annodex CMML plugin<br />kadnode-2.2.5_1                P2P name resolution daemon<br />leafnode-1.11.11               NNTP package for offline news caching and reading<br />monodevelop-7.6.11.7_2         IDE for the .NET platform<br />munin-node-2.0.52              Node-specific part of Munin<br />node-13.3.0                    V8 JavaScript for client and server<br />node-thrift-0.11.0             Node.js bindings for the Apache Thrift RPC system<br />node10-10.17.0                 V8 JavaScript for client and server<br />node12-12.13.1                 V8 JavaScript for client and server<br />node8-8.16.2                   V8 JavaScript for client and server (8.x LTS)<br />node_exporter-0.18.1           Prometheus exporter for machine metrics<br />npm-node10-6.12.1              Node package manager<br />npm-node12-6.12.1              Node package manager<br />npm-node8-6.12.1               Node package manager<br />p5-Tree-DAG_Node-1.31          Super class for representing nodes in a tree<br />p5-Tree-Node-0.08_2            Memory-efficient tree nodes in Perl<br />p5-WebService-Linode-0.29      Perl Interface to the Linode.com API<br />p5-XML-Node-0.11_1             Perl5 module to extend and simplify XML::Parser<br />p5-XML-NodeFilter-0.01_1       XML::NodeFilter is an object that know how to "filter out" nodes<br />py27-certbot-dns-linode-1.0.0  Linode DNS Authenticator plugin for Certbot<br />py27-nodeenv-1.3.3             Node.js virtual environment builder<br />py37-certbot-dns-linode-1.0.0  Linode DNS Authenticator plugin for Certbot<br />py37-nodeenv-1.3.3             Node.js virtual environment builder<br />yarn-node10-1.19.1             Package manager for node, alternative to npm<br />yarn-node12-1.19.1             Package manager for node, alternative to npm<br />yarn-node8-1.19.1              Package manager for node, alternative to npm</pre>
<figure id="attachment_18263" aria-describedby="caption-attachment-18263" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18263" src="https://www.osradar.com/wp-content/uploads/2020/02/1-8.png" alt="1.- Search for nodejs on the FreeBSD repositories" width="1365" height="550" srcset="https://www.osradar.com/wp-content/uploads/2020/02/1-8.png 1365w, https://www.osradar.com/wp-content/uploads/2020/02/1-8-300x121.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/1-8-1024x413.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/1-8-768x309.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/1-8-696x280.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/1-8-1068x430.png 1068w, https://www.osradar.com/wp-content/uploads/2020/02/1-8-1042x420.png 1042w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-18263" class="wp-caption-text">1.- Search for nodejs on the FreeBSD repositories</figcaption></figure>
<p>As you can see from the screen output, there are several versions of NodeJS in the official repositories. At the time of writing this post, series 12 is the latest LTS and therefore the most reliable option.</p>
<p>So let&#8217;s install NodeJS with the following command:</p>
<pre>:~$ sudo pkg install node12<br />Updating FreeBSD repository catalogue...<br />FreeBSD repository is up to date.<br />All repositories are up to date.<br />The following 5 package(s) will be affected (of 0 checked):<br />New packages to be INSTALLED:<br />	node12: 12.13.1<br />	libnghttp2: 1.40.0<br />	c-ares: 1.15.0_1<br />	libuv: 1.34.0<br />	icu: 65.1,1<br />Number of packages to be installed: 5<br />The process will require 86 MiB more space.<br />18 MiB to be downloaded.<br />Proceed with this action? [y/N]:</pre>
<figure id="attachment_18264" aria-describedby="caption-attachment-18264" style="width: 817px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18264" src="https://www.osradar.com/wp-content/uploads/2020/02/2-8.png" alt="2.- Install NodeJS on FreeBSD 12" width="817" height="366" srcset="https://www.osradar.com/wp-content/uploads/2020/02/2-8.png 817w, https://www.osradar.com/wp-content/uploads/2020/02/2-8-300x134.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/2-8-768x344.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/2-8-696x312.png 696w" sizes="(max-width: 817px) 100vw, 817px" /><figcaption id="caption-attachment-18264" class="wp-caption-text">2.- Install NodeJS on FreeBSD 12</figcaption></figure>
<p>Now check the version of NodeJS installed with the following command:</p>
<pre>:~$ node --version<br />v12.13.1</pre>
<p>It is now convenient to install NPM.</p>
<p>Again, search for the package NPM.</p>
<pre>:~$ sudo pkg search npm<br />Password:<br />npm-6.12.1                     Node package manager<br />npm-node10-6.12.1              Node package manager<br />npm-node12-6.12.1              Node package manager<br />npm-node8-6.12.1               Node package manager</pre>
<figure id="attachment_18265" aria-describedby="caption-attachment-18265" style="width: 748px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18265" src="https://www.osradar.com/wp-content/uploads/2020/02/3-8.png" alt="3.- NPM packages available on the official repositories" width="748" height="147" srcset="https://www.osradar.com/wp-content/uploads/2020/02/3-8.png 748w, https://www.osradar.com/wp-content/uploads/2020/02/3-8-300x59.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/3-8-696x137.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/3-8-741x147.png 741w" sizes="(max-width: 748px) 100vw, 748px" /><figcaption id="caption-attachment-18265" class="wp-caption-text">3.- NPM packages available on the official repositories</figcaption></figure>
<p>As you can see in the image, there are several versions of NPM. Each of them depends on a specific version of NodeJS. Since we have installed NodeJS version 12, then we have to install NPM for that version.</p>
<pre>:~$ sudo pkg install npm-node12<br />Updating FreeBSD repository catalogue...<br />FreeBSD repository is up to date.<br />All repositories are up to date.<br />The following 4 package(s) will be affected (of 0 checked):<br /><br />New packages to be INSTALLED:<br />	npm-node12: 6.12.1<br />	python27: 2.7.17_1<br />	libffi: 3.2.1_3<br />	gmake: 4.2.1_3<br /><br />Number of packages to be installed: 4<br /><br />The process will require 90 MiB more space.<br />15 MiB to be downloaded.<br /><br />Proceed with this action? [y/N]:</pre>
<figure id="attachment_18266" aria-describedby="caption-attachment-18266" style="width: 708px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18266" src="https://www.osradar.com/wp-content/uploads/2020/02/4-7.png" alt="4.- Install NPM on FreeBSD 12" width="708" height="365" srcset="https://www.osradar.com/wp-content/uploads/2020/02/4-7.png 708w, https://www.osradar.com/wp-content/uploads/2020/02/4-7-300x155.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/4-7-696x359.png 696w" sizes="(max-width: 708px) 100vw, 708px" /><figcaption id="caption-attachment-18266" class="wp-caption-text">4.- Install NPM on FreeBSD 12</figcaption></figure>
<p>And that is it. Now you can use NodeJS without problems.</p>
<h2>Conclusion</h2>
<p>NodeJS is a rather interesting technology that is becoming increasingly popular in large web projects. So it&#8217;s always good to have it in our system. Today you have learned that installing it on FreeBSD 12 is quite simple.</p>
<p>Please share this post with your friends and join our <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">Telegram channel</a>.</p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nodejs-freebsd-12/">How to install NodeJS on FreeBSD 12?</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/install-nodejs-freebsd-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Cezerin platform on Ubuntu 18.04?</title>
		<link>https://www.osradar.com/install-cezerin-platform-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/install-cezerin-platform-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sun, 25 Aug 2019 23:11:25 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[bionic]]></category>
		<category><![CDATA[cezerin]]></category>
		<category><![CDATA[e-commerce]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[NodeJS]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13163</guid>

					<description><![CDATA[<p>Today much of the trade remains traditional, but every time the trend is turned to the Internet. In this sense, companies large and small, need applications and tools to help promote their products. In addition, create all the infrastructure to conduct E-commerce. So, Linux is outlined as the ideal system to be the system behind [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-cezerin-platform-ubuntu-18-04/">How to install Cezerin platform on Ubuntu 18.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 much of the trade remains traditional, but every time the trend is turned to the Internet. In this sense, companies large and small, need applications and tools to help promote their products. In addition, create all the infrastructure to conduct E-commerce. So, Linux is outlined as the ideal system to be the system behind the entire infrastructure. Today, I will show you how to install Cezerin on Ubuntu 18.04. With Cezerin you can deploy an e-commerce platform quickly and easily.</p>
<h2>What is Cezerin?</h2>
<p><a href="https://github.com/cezerin/cezerin" rel="noopener">Cezerin</a> is React and Node.js based eCommerce platform. Allows creating Progressive Web Apps.</p>
<p>In other words, you can make a commercial site in a few minutes with this application.</p>
<p>Of course, Cezerin is open source and has the basic operations to make your online store. Although it is simple, it has many features:</p>
<ul>
<li>Products (options, variants, attributes).</li>
<li>Product categories.</li>
<li>Inventory and stock management.</li>
<li>Customers.</li>
<li>Customer groups.</li>
<li>Orders.</li>
<li>Order custom statuses.</li>
</ul>
<p>So, let us get to work.</p>
<h2>Install Cezerin on Ubuntu 18.04</h2>
<p>To install Cezerin it is necessary to have an Ubuntu 18.04 server that has the sudo command available.</p>
<p>On the other hand, since the application is built with NodeJS, it needs to be installed correctly. In addition, to manage the application data use the database manager NoSQL MongoDB. In other words, you have to install them both.</p>
<h3>1) Install NodeJS on Ubuntu 18.04</h3>
<p>The first step is to install NodeJS on Ubuntu 18.04. For that, we have a detailed tutorial that will make you achieve this goal.</p>
<p>Read <a href="https://www.osradar.com/how-to-install-nodejs-on-ubuntu-18-04-lts-linux-mint-19/" rel="noopener">How to install NodeJS on Ubuntu 18.04?</a></p>
<p>Once you have finished, you will be able to continue with the guide.</p>
<h3>2) Install MongoDB on Ubuntu 18.04</h3>
<p>Now it is MongoDB&#8217;s turn. For this, we will use the version available in the official repository of the project. So add it and then install MongoDB.</p>
<p>First, open a terminal and run the following command to add the GPG key of the repository.</p>
<pre>:~$ wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -</pre>
<p><figure id="attachment_13183" aria-describedby="caption-attachment-13183" style="width: 749px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13183" src="https://www.osradar.com/wp-content/uploads/2019/08/1-16.jpeg" alt="1.-Adding the GPG key for the repository" width="749" height="91" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-16.jpeg 749w, https://www.osradar.com/wp-content/uploads/2019/08/1-16-300x36.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-16-696x85.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/1-16-741x91.jpeg 741w" sizes="(max-width: 749px) 100vw, 749px" /><figcaption id="caption-attachment-13183" class="wp-caption-text">1.-Adding the GPG key for the repository</figcaption></figure></p>
<p>It then adds the repository as such to the list of software origins.</p>
<pre>:~$ echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.2 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list</pre>
<p>After this, refresh the APT cache.</p>
<pre>:~$ sudo apt update</pre>
<p>Install MongoDB on Ubuntu with the following command:</p>
<pre>:~$ sudo apt install mongodb-org mongodb-org-shell mongodb-org-server mongodb-org-mongos libcurl3</pre>
<p><figure id="attachment_13184" aria-describedby="caption-attachment-13184" style="width: 920px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13184" src="https://www.osradar.com/wp-content/uploads/2019/08/2-14.jpeg" alt="2.- Install MongoDB on Ubuntu 18.04" width="920" height="233" srcset="https://www.osradar.com/wp-content/uploads/2019/08/2-14.jpeg 920w, https://www.osradar.com/wp-content/uploads/2019/08/2-14-300x76.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/2-14-768x195.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/2-14-696x176.jpeg 696w" sizes="(max-width: 920px) 100vw, 920px" /><figcaption id="caption-attachment-13184" class="wp-caption-text">2.- Install MongoDB on Ubuntu 18.04</figcaption></figure></p>
<p>Check the installed version:</p>
<pre>:~$ mongod -version
db version v4.2.0
git version: a4b751dcf51dd249c5865812b390cfd1c0129c30
OpenSSL version: OpenSSL 1.1.1  11 Sep 2018
allocator: tcmalloc
modules: none
build environment:
distmod: debian92
distarch: x86_64
target_arch: x86_64</pre>
<h3>3) Install Cezerin on Ubuntu 18.04</h3>
<p>After installing the pre-requirements, we will be able to install Cezerin. To do this, navigate to your personal folder and download the source code using git.</p>
<pre>:~$ cd ~
:~$ git clone https://github.com/cezerin/cezerin.git cezerin</pre>
<p><figure id="attachment_13185" aria-describedby="caption-attachment-13185" style="width: 844px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13185" src="https://www.osradar.com/wp-content/uploads/2019/08/3-15.jpeg" alt="3.- Downloading Cezering using git" width="844" height="175" srcset="https://www.osradar.com/wp-content/uploads/2019/08/3-15.jpeg 844w, https://www.osradar.com/wp-content/uploads/2019/08/3-15-300x62.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/3-15-768x159.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/3-15-696x144.jpeg 696w" sizes="(max-width: 844px) 100vw, 844px" /><figcaption id="caption-attachment-13185" class="wp-caption-text">3.- Downloading Cezering using git</figcaption></figure></p>
<p>Then, navigate into the folder and run:</p>
<pre>:~$ cd cezerin
:~$ sudo npm install
:~$ sudo npm run build</pre>
<p><figure id="attachment_13186" aria-describedby="caption-attachment-13186" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13186" src="https://www.osradar.com/wp-content/uploads/2019/08/4-13.jpeg" alt="4.- Installing Cezerin on Ubuntu 18.04" width="1366" height="707" srcset="https://www.osradar.com/wp-content/uploads/2019/08/4-13.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/4-13-300x155.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/4-13-768x397.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/4-13-1024x530.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/4-13-696x360.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/4-13-1068x553.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/4-13-811x420.jpeg 811w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13186" class="wp-caption-text">4.- Installing Cezerin on Ubuntu 18.04</figcaption></figure></p>
<p>Once the &#8220;compilation&#8221; has been completed, the application must be installed as such. To do this, simply use the following:</p>
<pre>:~$ sudo npm run setup</pre>
<p><figure id="attachment_13187" aria-describedby="caption-attachment-13187" style="width: 663px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13187" src="https://www.osradar.com/wp-content/uploads/2019/08/5-7.jpeg" alt="5.- Install Cezerin on Ubuntu 18.04" width="663" height="370" srcset="https://www.osradar.com/wp-content/uploads/2019/08/5-7.jpeg 663w, https://www.osradar.com/wp-content/uploads/2019/08/5-7-300x167.jpeg 300w" sizes="(max-width: 663px) 100vw, 663px" /><figcaption id="caption-attachment-13187" class="wp-caption-text">5.- Install Cezerin on Ubuntu 18.04</figcaption></figure></p>
<p>Now you can start the program by using the following command:</p>
<pre>:~$ sudo npm start</pre>
<p><figure id="attachment_13188" aria-describedby="caption-attachment-13188" style="width: 825px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13188" src="https://www.osradar.com/wp-content/uploads/2019/08/6-4.jpeg" alt="6.- Starting the application" width="825" height="329" srcset="https://www.osradar.com/wp-content/uploads/2019/08/6-4.jpeg 825w, https://www.osradar.com/wp-content/uploads/2019/08/6-4-300x120.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/6-4-768x306.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/6-4-696x278.jpeg 696w" sizes="(max-width: 825px) 100vw, 825px" /><figcaption id="caption-attachment-13188" class="wp-caption-text">6.- Starting the application</figcaption></figure></p>
<p>Now, open your web browser and go to <code>http://Server-ip:3000</code>. Remember to open the port on the firewall.</p>
<p><figure id="attachment_13189" aria-describedby="caption-attachment-13189" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13189" src="https://www.osradar.com/wp-content/uploads/2019/08/7-8.png" alt="7.- Cezering running on Ubuntu 18.04" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/7-8.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/7-8-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/7-8-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/7-8-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/7-8-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/7-8-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/7-8-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13189" class="wp-caption-text">7.- Cezering running on Ubuntu 18.04</figcaption></figure></p>
<p>If you want to manage Cezerin as a systemd service, run the following commands:</p>
<pre>:~$ sudo nano /etc/systemd/system/cezerin.service</pre>
<p>And add the following:</p>
<pre>[Unit]
Description=Cezerin

[Service]
ExecStart=/usr/bin/npm start
WorkingDirectory=/opt/cezerin
Restart=always
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=nodejs-example

[Install]
WantedBy=multi-user.target</pre>
<p><figure id="attachment_13190" aria-describedby="caption-attachment-13190" style="width: 889px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13190" src="https://www.osradar.com/wp-content/uploads/2019/08/8.jpeg" alt="8.- Make Cezering a systemd service" width="889" height="299" srcset="https://www.osradar.com/wp-content/uploads/2019/08/8.jpeg 889w, https://www.osradar.com/wp-content/uploads/2019/08/8-300x101.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/8-768x258.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/8-696x234.jpeg 696w" sizes="(max-width: 889px) 100vw, 889px" /><figcaption id="caption-attachment-13190" class="wp-caption-text">8.- Make Cezering a systemd service</figcaption></figure></p>
<p>To apply the changes, reload systemd.</p>
<pre>:~$ sudo systemctl daemon-reload</pre>
<p>Now, you can start it, enable it or stop it easily.</p>
<p>And that is it.</p>
<h2>Conclusion</h2>
<p>As you can see, it is quite simple to deploy an E-Commerce platform with Cezerin. Of course, the potential of the application makes the possibilities unimaginable.</p>
<p>So, share this post and please join <a href="https://t.me/osradar">our Telegram channel.</a></p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-cezerin-platform-ubuntu-18-04/">How to install Cezerin platform on Ubuntu 18.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/install-cezerin-platform-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install NodeJS on CentOS 8 / RHEL 8 / Oracle Linux 8</title>
		<link>https://www.osradar.com/install-nodejs-on-centos-8-rhel-8-oracle-linux-8/</link>
					<comments>https://www.osradar.com/install-nodejs-on-centos-8-rhel-8-oracle-linux-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 09 Aug 2019 01:11:37 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[NodeJS]]></category>
		<category><![CDATA[Oracle Linux 8. tutorial]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[RHEL 8]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12939</guid>

					<description><![CDATA[<p>A web server must be able to run many different applications or websites. Then, you have to install tools to run it. On the other hand, it is also possible that in a normal computer, we have to use those tools to create such applications. In this sense, NodeJS emerges as one of those tools [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nodejs-on-centos-8-rhel-8-oracle-linux-8/">Install NodeJS on CentOS 8 / RHEL 8 / Oracle Linux 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>A web server must be able to run many different applications or websites. Then, you have to install tools to run it. On the other hand, it is also possible that in a normal computer, we have to use those tools to create such applications. In this sense, NodeJS emerges as one of those tools that many developers use for their web applications. So, in this post, you will learn how to install NodeJS on CentOS 8, RHEL 8 and Oracle Linux 8. Whether you use the system as a web server or as your desktop operating system. In both cases, it is useful to install it.</p>
<h2>NodeJS on CentOS 8, RHEL 8 and Oracle Linux 8</h2>
<p>As is well known, <a href="http://nodejs.org/">NodeJS</a> is an open-source technology that allows you to expand the functionality of web applications. Basically, it is a Javascript implementation on the server-side. Mainly used in applications where constant and asynchronous communication between client and server is required.</p>
<p>If you use CentOS 8, RHEL 8 or Oracle Linux 8 it is likely that you are either an application developer or sysadmin. In both cases, it is likely that you will have to serve web applications and it is better than the system has NodeJS installed for easy deployment.</p>
<h3>1) Using the EPEL repository</h3>
<p>We have two ways to install NodeJS on CentOS 8, RHEL 8 and Oracle Linux 8. The first is to enable the EPEL repository.</p>
<p>EPEL is a pretty reliable repository that allows you to install a lot of packages in the distribution. All this without any problems.</p>
<p>It opens a terminal and runs the following:</p>
<pre>:~$ su
:~#  dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm</pre>
<p><figure id="attachment_12940" aria-describedby="caption-attachment-12940" style="width: 1361px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12940" src="https://www.osradar.com/wp-content/uploads/2019/08/1-3.jpeg" alt="1.- Enabling the EPEL repository on CentOS 8, RHEL 8 and Oracle Linux 8" width="1361" height="276" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-3.jpeg 1361w, https://www.osradar.com/wp-content/uploads/2019/08/1-3-300x61.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-3-768x156.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/1-3-1024x208.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/1-3-696x141.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/1-3-1068x217.jpeg 1068w" sizes="(max-width: 1361px) 100vw, 1361px" /><figcaption id="caption-attachment-12940" class="wp-caption-text">1.- Enabling the EPEL repository on CentOS 8, RHEL 8 and Oracle Linux 8</figcaption></figure></p>
<p>Then, install NodeJS by running the following command:</p>
<pre>:~# dnf install nodejs</pre>
<p><figure id="attachment_12941" aria-describedby="caption-attachment-12941" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12941" src="https://www.osradar.com/wp-content/uploads/2019/08/2-3.jpeg" alt="2.- Install NodeJS on CentOS 8, RHEL 8 and Oracle Linux 8" width="1366" height="354" srcset="https://www.osradar.com/wp-content/uploads/2019/08/2-3.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/2-3-300x78.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/2-3-768x199.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/2-3-1024x265.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/2-3-696x180.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/2-3-1068x277.jpeg 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12941" class="wp-caption-text">2.- Install NodeJS on CentOS 8, RHEL 8 and Oracle Linux 8</figcaption></figure></p>
<p>Finally, check the installed version.</p>
<pre>:~# node -v
v10.14.1</pre>
<h3>2) Install NodeJS on CentOS 8, RHEL 8 and Oracle Linux 8 using the NVM</h3>
<p>The first method is quite reliable and we even get an LTS version. However, it is likely that we need to have the latest version available. Using NVM this is possible.</p>
<p><a href="https://github.com/nvm-sh/nvm">NVM</a> (Node Version Manager) is a utility that allows you to install and manage different versions of NodeJS.</p>
<p>First, you have to install curl to download NVM.</p>
<pre>:~# dnf install curl</pre>
<p>Then, download and install NVM.</p>
<pre>:~# :~# curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash</pre>
<p><figure id="attachment_12942" aria-describedby="caption-attachment-12942" style="width: 811px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12942" src="https://www.osradar.com/wp-content/uploads/2019/08/3-3.jpeg" alt="3.- Install NVM on CentOS 8 RHEL 8 and Oracle Linux 8" width="811" height="252" srcset="https://www.osradar.com/wp-content/uploads/2019/08/3-3.jpeg 811w, https://www.osradar.com/wp-content/uploads/2019/08/3-3-300x93.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/3-3-768x239.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/3-3-696x216.jpeg 696w" sizes="(max-width: 811px) 100vw, 811px" /><figcaption id="caption-attachment-12942" class="wp-caption-text">3.- Install NVM on CentOS 8 RHEL 8 and Oracle Linux 8</figcaption></figure></p>
<p>Now, refresh the bash profile to use NVM.</p>
<pre>:~# source ~/.bash_profile</pre>
<p>Now you can list all versions of NodeJS available for download.</p>
<pre>:~# nvm list-remote</pre>
<p><figure id="attachment_12943" aria-describedby="caption-attachment-12943" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12943" src="https://www.osradar.com/wp-content/uploads/2019/08/4-2.jpeg" alt="4.- All nodeJS versions ready to be installed" width="1366" height="709" srcset="https://www.osradar.com/wp-content/uploads/2019/08/4-2.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/4-2-300x156.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/4-2-768x399.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/4-2-1024x531.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/4-2-696x361.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/4-2-1068x554.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/4-2-809x420.jpeg 809w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12943" class="wp-caption-text">4.- All nodeJS versions ready to be installed</figcaption></figure></p>
<p>For example, I will install the latest version.</p>
<pre>:~# nvm install 12.7.0</pre>
<p>Once the process is finished, check the installed version.</p>
<pre>:~# node -v</pre>
<p><figure id="attachment_12944" aria-describedby="caption-attachment-12944" style="width: 318px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12944" src="https://www.osradar.com/wp-content/uploads/2019/08/5-1.jpeg" alt="5.- Node version" width="318" height="114" srcset="https://www.osradar.com/wp-content/uploads/2019/08/5-1.jpeg 318w, https://www.osradar.com/wp-content/uploads/2019/08/5-1-300x108.jpeg 300w" sizes="(max-width: 318px) 100vw, 318px" /><figcaption id="caption-attachment-12944" class="wp-caption-text">5.- Node version</figcaption></figure></p>
<p>And that is it.</p>
<h2>Conclusion</h2>
<p>As you can see Installing NodeJS is a simple process, especially for a technology quite powerful and used by many developers worldwide. We even have two ways to do it and it&#8217;s up to you to choose the best one.</p>
<p>If you want to <strong>install NodeJS in other systems like Debian or Ubuntu</strong>, you can check <a href="https://www.osradar.com/tag/nodejs/">here</a>.</p>
<p>Please share this post with your friends and join <a href="https://t.me/osradar">our Telegram channel</a>.</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nodejs-on-centos-8-rhel-8-oracle-linux-8/">Install NodeJS on CentOS 8 / RHEL 8 / Oracle Linux 8</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/install-nodejs-on-centos-8-rhel-8-oracle-linux-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Two ways to install NodeJS on Debian 10 Buster?</title>
		<link>https://www.osradar.com/two-ways-to-install-nodejs-debian-10-buster/</link>
					<comments>https://www.osradar.com/two-ways-to-install-nodejs-debian-10-buster/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 18 Jul 2019 23:00:43 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Javascritpt]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NodeJS]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[web programming]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12731</guid>

					<description><![CDATA[<p>Debian 10 Buster is one of the best operating systems for application development. And in fact almost any kind, including the web. In this sense, you have the possibility to install enough tools to improve the power of these applications. Among them NodeJS. If you are a web developer or are just starting, you will [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/two-ways-to-install-nodejs-debian-10-buster/">Two ways to install NodeJS on Debian 10 Buster?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Debian 10 Buster is one of the best operating systems for application development. And in fact almost any kind, including the web. In this sense, you have the possibility to install enough tools to improve the power of these applications. Among them NodeJS. If you are a web developer or are just starting, you will love this post, because you will learn two ways to install NodeJS on <a href="https://www.osradar.com/tag/buster/" rel="noopener">Debian 10</a>, Buster.</p>
<h2>A brief review of NodeJS</h2>
<p>If you are an expert developer or already have some experience with it, you will know it is NodeJS. However, in case you are starting with it, it is a good idea to know what NodeJS is first.</p>
<p><a href="https://nodejs.org/" rel="noopener">NodeJS</a> is a technology that allows running Javascript on the server-side using Google&#8217;s V8 engine. It is a real revolution in the way web applications are developed because it reduces the asymmetry of client and server performance.</p>
<p>Many important forms such as Linkedin or eBay were created using this technology. This shows us the power of NodeJS.</p>
<p>An advantage of NodeJS is that its syntax is similar to that of Javascript and therefore its learning curve decreases a lot.</p>
<h2>Two ways to install NodeJS on Debian 10 Buster</h2>
<p>A great advantage of using Linux is that there are usually several ways to install a program. NodeJS is one of those programs. There are at least two ways to install NodeJS on <a href="https://www.osradar.com/tag/buster/" rel="noopener">Debian 10</a>, each with advantages and disadvantages and responds to specific needs in each case.</p>
<h3>1) Using the Debian 10 repositories</h3>
<p>Debian 10 Buster includes quite a few different applications in its official repositories. Fortunately, NodeJS is in the repositories, particularly there is version <code>10.15.2</code>. That belongs to the LTS series.</p>
<p>So open a terminal and run the following command:</p>
<pre>:~$ sudo apt install nodejs</pre>
<p>image</p>
<p>Then, check the installed version.</p>
<pre>:~$ node -v
v10.15.2</pre>
<h3>2) Using NVM to install NodeJS on Debian 10</h3>
<p>The first method is quite safe and reliable but has a possible problem. NodeJS has a pretty active development and there are already newer versions than Debian 10 in its repositories.</p>
<p>For example, of the LTS series and NodeJS 10.16.0 is available (at the time of writing this post, that is the most recent LTS version) and of all the development the latest stable version (at the time of writing this post) is 12.6.0.</p>
<p>So, if you want to take advantage of the features of the application, this method can make things easier for you.</p>
<p>Open a terminal session and type the following command to install curl.</p>
<pre>:~$ sudo apt install curl</pre>
<p>Then we will use curl to get the NVM installer.</p>
<pre>:~$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash</pre>
<p><figure id="attachment_12745" aria-describedby="caption-attachment-12745" style="width: 786px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12745" src="https://www.osradar.com/wp-content/uploads/2019/07/1-1.jpeg" alt="1.- Getting NVM on Debian 10" width="786" height="357" srcset="https://www.osradar.com/wp-content/uploads/2019/07/1-1.jpeg 786w, https://www.osradar.com/wp-content/uploads/2019/07/1-1-300x136.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/07/1-1-768x349.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/07/1-1-696x316.jpeg 696w" sizes="(max-width: 786px) 100vw, 786px" /><figcaption id="caption-attachment-12745" class="wp-caption-text">1.- Getting NVM on Debian 10</figcaption></figure></p>
<p>Now in order to be able to use NVM from the terminal, we need to refresh our bash profile file.</p>
<pre>:~$ source ~/.profile</pre>
<p>To see all the versions of NodeJS you can install, use the following command:</p>
<pre>:~$ nvm ls-remote</pre>
<p><figure id="attachment_12746" aria-describedby="caption-attachment-12746" style="width: 566px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12746" src="https://www.osradar.com/wp-content/uploads/2019/07/2-1.jpeg" alt="2.- All NodeJS versions" width="566" height="708" srcset="https://www.osradar.com/wp-content/uploads/2019/07/2-1.jpeg 566w, https://www.osradar.com/wp-content/uploads/2019/07/2-1-240x300.jpeg 240w, https://www.osradar.com/wp-content/uploads/2019/07/2-1-336x420.jpeg 336w" sizes="(max-width: 566px) 100vw, 566px" /><figcaption id="caption-attachment-12746" class="wp-caption-text">2.- All NodeJS versions</figcaption></figure></p>
<p>And choose the version you want. In this case, choose the latest stable version.</p>
<pre>:~$ nvm install 12.6.0</pre>
<p><figure id="attachment_12747" aria-describedby="caption-attachment-12747" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12747" src="https://www.osradar.com/wp-content/uploads/2019/07/3-1.jpeg" alt="3.- Install NodeJS on Debian 10" width="1366" height="169" srcset="https://www.osradar.com/wp-content/uploads/2019/07/3-1.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/07/3-1-300x37.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/07/3-1-768x95.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/07/3-1-1024x127.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/07/3-1-696x86.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/07/3-1-1068x132.jpeg 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12747" class="wp-caption-text">3.- Install NodeJS on Debian 10</figcaption></figure></p>
<p>Replace 12.6.0 with the version you want.</p>
<p>Check the installed version:</p>
<pre>:~$ node -v
v12.6.0</pre>
<p>And that is it.</p>
<h2>Conclusion</h2>
<p>NodeJS is a cutting-edge technology for the development of web applications. In this post, you have learned two different ways to install it on Debian 10, Buster.</p>
<p>Please share this post with your friends and join <a href="https://t.me/osradar">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/two-ways-to-install-nodejs-debian-10-buster/">Two ways to install NodeJS on Debian 10 Buster?</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/two-ways-to-install-nodejs-debian-10-buster/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
