I need to know how I can install NodeJS multiple times on the same machine. I know about NVM but that only allows me to have 1 active version of node at once. I need to have these running concurrently.
Forever also need to be installed on each of these node installs.
I have no idea what I'm doing at all here. Any help would be greatly appreciated, thanks.
You could create multiple symbolic links to the install locations of your node versions:
eg install V1 like this:
cd /opt
wget http://nodejs.org/dist/v0.8.17/node-v0.8.17.tar.gz
tar zxf node-v0.8.17.tar.gz
cd node-v0.8.17
./configure --prefix=/opt/node-v0.8.17 && make install
then create the sym-link: eg:
cd /opt
ln -s node-v0.8.17 nodeV1
run this node installation with:
nodeV1
(repeat with different locations & sym-links for your other versions)
我想,您将在安装节点js时尝试使用选项“ --prefix”
./configure --prefix=/path/to/node_version
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.