ScaleScaleScaleScale

Tips / Nginx


How to Install NodeJS on Fedora 20

In the past days I’ve shared some tips about How to Install NodeJS on CentOS and How to install NodeJS on Ubuntu, and today we will do it on another popular Linux distribution: Fedora 20. So, if you would like to test this popular programming platform on Fedora, this guide will help you to do it. Once installed, you will be able to build fast scalable applications on this server-side Javascript platform.

Open a terminal and tupe ‘su -‘ to login as root.

Then, let’s update the system:

yum update -y

Install some software requirements

yum install g++ curl openssl openssl-devel make gcc-c++ glibc-devel -y

Download NodeJS and extract the package

mkdir /root/temp ; cd /root
wget http://nodejs.org/dist/node-latest.tar.gz
tar -xvpzf node-latest.tar.gz
cd node-v*

Configure and install NodeJS

./configure
make install

Install NPM (package manager):

curl http://npmjs.org/install.sh | sh

Some basic NPM modules you may need while developing your apps:

npm install mongodb mysql nginx-vhosts nginx-stubstatus connect redis connect-redis jade express express-resource emailjs futures

Verify NodeJS was installed ok:

node --version

That’s all, please try it and share your comments if you find any installation problems.

Popular search terms:

  • install node in fedoar
  • fedora install nodejs
  • fedora install npm
  • how to download Node js and NPM on Fedora 29
profile

Esteban Borges

Linux Geek, Webperf Addict, Nginx Fan. CTO @Infranetworking

  • Oswaldo

    Thanks so much for this article, it helped me a lot. Five-Star Article 😀

  • Anil

    Thank You so much for the article 🙂

  • John_33

    Great article, but curl http://npmjs.org/install.sh | sh doesn’t work anymore for some reason. I instead did yum -y install nodejs and sudo yum install nodejs npm and it worked.