Installing and using node on Fedora 20

Some notes and pointers on installing and using node.js on Fedora 20.

The best way to install node.js on Fedora 20 is to get the latest package from nodesource. The nodejs and npm packages available from Fedora and EPEL are not as up to date and will often break things in frustrating ways.

As root run the following commands:

curl -sL | bash -
yum install -y nodejs

At a minimum you’ll want grunt and bower available globally:

npm install -g grunt-cli
npm install -g bower

For most everything else you’re going to be installing and configuring things for each developer individually. The paradigm followed by node is focused on building things in the developer’s own home directory. For this reason you’ll find that those building software with node will each have their own ~/.npm and ~/.npm/node_modules directories. You may want to see that everything gets installed globally on a web server running node application services, but even there it might be better to install to the home directory of whatever account will actually be running the service.


Node.js download links (for Windows, MacOS, Linux and SunOS)

How do I get started with Node.js?

Best practices for building a website with node.js

This entry was posted in Development on by .

About phil

My name is Phil Lembo. In my day job I’m an enterprise IT architect for a leading distribution and services company. The rest of my time I try to maintain a semi-normal family life in the suburbs of Raleigh, NC. E-mail me at philipATlembobrothersDOTcom. The opinions expressed here are entirely my own and not those of my employers, past, present or future (except where I quote others, who will need to accept responsibility for their own rants).