Running node.js server on Ubuntu forever

I am trying to use the node.js 'forever' package to run the node.js service on Ubuntu. It seems like it should be simple. However, when I run it, I get the following output:

/usr/bin/env: node: No such file or directory

I think this may be because the Ubuntu package manager calls node.js binary nodejs, not nodewhat is more standard. Is there any way to tell forever the package where you can find the node?

(I tried to do a symbolic binding /usr/bin/nodebefore /usr/bin/nodejs, but that caused even more errors, and in any case, it looks like a hack)

+5
source share
1 answer

Have you tried installing the last node from the source ?

git clone https://github.com/joyent/node.git
cd node
git checkout v0.8.22 #Try checking nodejs.org for what the stable version is
./configure
make
sudo make install

, , node Debian node/nodejs.

/usr/bin/nodejs, /usr/bin/ node .

!

+3

All Articles