How To Install Node.js on Debian and Fedora

JavaScript popularity nowadays has changed web development dramatically. Before some years JavaScript and its technologies were used only for front-end, but now things have changed with Node.js. Node.js is an open source, cross-platform runtime environment for developing server side web applications.

What’s Node.js

It’s important to realize that Node.js is not a webserver. It doesn’t works like Apache and there isn’t a config file where you point it to HTML files. If you goal is to create a HTTP server, then you have to write an HTTP server. In other words, Node.js is another way to execute code in your machine.

Some History

Node.js was invented on 2009 by Ryan Dahl and other developers working at Joyent. It was created and first published for Linux use in 2009. Before Ryan Dahl created Node.js, he was inspired after seeing a file upload progress bar on Flickr.

The browser did not know how percent of the file had been uploaded and had to query the web server. Dahl wanted an easier way. At the inaugural European JSConf on November 8 2009, he demonstraded Node.js which combined Google V8 JavaScript engine, an event loop and a low-level I/O API.

How to Install

We will cover how to install Node.js on Debian and Fedora. Follow the steps below to get Node.js to your Linux machine.

How to Install on Debian

Get privilege rights:

Nodejs Fedora

Setup with Debian:

Nodejs Debian

Nodejs Debian

Then install it with Debian:

NodeJs Debian

To compile and install native addons from npm you also need to install build tools (optional) :

NodeJs Debian

How to Install on Fedora

Get privilege rights:

Nodejs Fedora

Setup with Fedora:

Nodejs Fedora

Then install it with Fedora:

Nodejs Fedora

To compile and install native addons from npm you also need to install build tools (optional) :

Nodejs Fedora

Happy Coding!

If you like our page, you can support us by liking our Facebook Page or by following us on Twitter.