Closed crapthings closed 6 years ago
just have to say it must have an env to let pm2 to know where nvm is
env
"NVM_DIR": "/home/cube/.nvm/"
server "exec_interpreter": "node@8.7.0"
about cluster mode
https://github.com/Unitech/PM2/issues/1575#issuecomment-137406227
found new solution, will make new pr
but the cluster mode failed to work, i don't know why.
i know this solution is not good,
because it might still using the node version that nvm alias defaultly
the "nvm.use" tricks server to check node, npm and pm2 available with specify version
but at least we have idea how to make it work.
@andruschka pls help and add nvm support
love love from harbin