Pm2: How to install pm2 into a non-network RedHat6.5 enviroment?

Created on 10 Sep 2014  ·  8Comments  ·  Source: Unitech/pm2

I want to install nodejs and pm2 to the non-network Redhat6.5 enviroment.
I have installed nodejs by tar the node-v0.10.13.tar.gz , ./configure and make & make install command.
But i can't install pm2 by the same command because there are no configure file in pm2-0.5.6.tgz.
Can anyone tell me if there have a way to solve the problem?

and
I find another way to install pm2 into the non-network Redhat enviroment.(following method)
Step1. copy /usr/local/lib/node_modules/pm2(another CentOS 6.4 server which has been installed nodejs and pm2) , and paste the pm2 folder to the non-network Redhat6.5 enviroment into the same directory.
Step2. execute the command: ln -s /usr/local/lib/node_modules/pm2/bin/pm2 /usr/local/bin/pm2
With the Step1,Step2, i can execute the command "pm2 start" at the non-network RedHat6.5.
But i don't know whether this method is feasible, and if there have any potential problems.

Enhancement Question

Most helpful comment

What exact command should i write to install pm2 via npmbox?

All 8 comments

I think npmbox might be a solution for the moment.
https://github.com/arei/npmbox

Thanks for your advice.
I will try it soon.
Thanks again!

Dear jshkurti

Thanks for your advice.
We tried to install pm2 with npmbox acording to https://github.com/arei/npmbox.
But the following error occured.
-----------------------Error----------------------------
npm ERR! Error: No registry url provided: GET npmbox
npm ERR! at RegClient.regRequest as request
npm ERR! at RegClient.get_ (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:116:8)
npm ERR! at RegClient. (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:43:15)
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! [email protected]

npm ERR! System Linux 2.6.32-431.el6.x86_64
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--global" "--cache" "./.npmbox-cache" "--optional" "--no-registry" "--fetch-retries" "0" "--fetch-retry-factor" "0" "--fetch-retry-mintimeout" "1" "--fetch-retry-maxtimeout" "2" "npmbox"
npm ERR! cwd /test
npm ERR! node -v v0.10.13
npm ERR! npm -v 1.3.2
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /test/npm-debug.log
npm ERR! not ok code 0


We find there have some limits with npmbox from the sitehttps://github.com/arei/npmbox
「About 6 weeks ago NPM removed the --no-registry switch which npmbox was dependant on. I believe there are some workarounds, but I have not had time to research this nor what version of npm specifically removed it. Hopefully I will get some free time soon and can address it or someone else will submit a pull request and we can all move forward. In the meantime, npmbox may have limited usability.」

Do you have any other way to install pm2 offline or could you have any advice how to solve the above problems?

Thank you!

Thanks arei and jshkurti.
We tried again with the new version npmbox, and installed pm2 offline successfully.
We really appreciate your help.

What exact command should i write to install pm2 via npmbox?

Need latest pm2 package, where can I get that ?

we can deliver special pm2 package for offline usage contact us at [email protected]

Do npm-bundle pm2 on a machine that has access to internet, then copy the zip file to your server and do npm i pm2-[version].tgz

Was this page helpful?
0 / 5 - 0 ratings