Install latest Node 13/12 on Ubuntu/Debian via apt

Install latest Node 13/12 on Ubuntu/Debian via apt

This blog guides you to install the latest version of node either be it node 12 or node 13 on the latest ubuntu 18.04 or Debian with help of ppt.

Node.js is a popular open-source javascript-based framework that can be used to create server-side applications very quickly. With its help, people are able to create server-side applications in javascript. Under are instructions to install node be either node 12 or node 13 on ubuntu either 18.04 or 16.04 or old versions and Debian via ppt

Instructions to install node on Ubuntu or Debian

Node v13.x :

# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_13.x | bash -
apt-get install -y nodejs

Node v12.x :

# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-get install -y nodejs

Node v11.x:

# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_11.x | bash -
apt-get install -y nodejs

Node v10.x:

# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get install -y nodejs

Node v8.x:

# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_8.x | bash -
apt-get install -y nodejs

To compile and install native addons from npm, you may also need to install build tools:

# use `sudo` on Ubuntu or run this as root on debian
apt-get install -y build-essential

The above information is taken from nodesource/distributions .

A Little bit about node

Node.js is an open-source, cross-platform, JavaScript runtime environment. It executes JavaScript code outside of a browser.Node.js was written initially by Ryan Dahl in 2009. In January 2010, a package manager was introduced for the Node.js environment called npm. In June 2011, Microsoft and Joyent implemented a native Windows version of Node.js.
Node.js brings event-driven programming to web servers, enabling the development of fast web servers in JavaScript. A Node.js app is run in a single process, without creating a new thread for every request. Node.js provides a set of asynchronous I/O primitives in its standard library that prevent JavaScript code from blocking and generally, libraries in Node.js are written using non-blocking paradigms, making blocking behavior the exception rather than the norm.

When Node.js needs to perform an I/O operation, like reading from the network, accessing a database or the filesystem, instead of blocking the thread and wasting CPU cycles waiting, Node.js will resume the operations when the response comes back.

This allows Node.js to handle thousands of concurrent connections with a single server without introducing the burden of managing thread concurrency, which could be a significant source of bugs.

Node.js has a unique advantage because millions of frontend developers that write JavaScript for the browser are now able to write the server-side code in addition to the client-side code without the need to learn a completely different language.

Want to create fat jar in Gradle ?? follow here.

Happy Installing !!!

Share This Post

Post Comment