20140930 installing and using node on fedora 20 - plembo/onemoretech GitHub Wiki

title: Installing and using node on Fedora 20 link: https://onemoretech.wordpress.com/2014/09/30/installing-and-using-node-on-fedora-20/ author: phil2nc description: post_id: 8583 created: 2014/09/30 14:07:02 created_gmt: 2014/09/30 18:07:02 comment_status: closed post_name: installing-and-using-node-on-fedora-20 status: publish post_type: post

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 https://rpm.nodesource.com/setup | 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. Resources: 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

Copyright 2004-2019 Phil Lembo