As of this post, there don't appear to be any yum
or rpm
options for available for installing NodeJS 0.12.x. Even Node's semi-official yum repo (nodesource.com) is still on 0.10.x for RHEL distros.
So two alternatives, build from source or download the binary distribution. First I'm going to try the binaries:
http://nodejs.org/dist/v0.12.4/node-v0.12.4-linux-x64.tar.gz
After untarring, what do I do with it? I know there are node
and npm
executables. Is there anything else I need to know about? Where do I move everything and what needs to be symlinked? Where is the proper place for these files to live on the server?
Best Answer
The answer is in that tarball's
README.md
file:This basically extracts the contents to /usr/local. I would further expand that by adding the arguments
--exclude=ChangeLog --exclude=LICENSE --exclude=README.md
to the tar command to prevent the documentation from being written to/usr/local
.