Hi, I tried to build n8n on pm2 like Run n8n as a Service with PM2
On server Debian 10 (buster)
But I have this issue:
$npm_config_user=root npm install pm2@latest -g
/usr/local/nvm/versions/node/v14.16.1/bin/pm2 -> /usr/local/nvm/versions/node/v14.16.1/lib/node_modules/pm2/bin/pm2
/usr/local/nvm/versions/node/v14.16.1/bin/pm2-dev -> /usr/local/nvm/versions/node/v14.16.1/lib/node_modules/pm2/bin
/pm2-dev
/usr/local/nvm/versions/node/v14.16.1/bin/pm2-docker -> /usr/local/nvm/versions/node/v14.16.1/lib/node_modules/pm2/
bin/pm2-docker
/usr/local/nvm/versions/node/v14.16.1/bin/pm2-runtime -> /usr/local/nvm/versions/node/v14.16.1/lib/node_modules/pm2
/bin/pm2-runtime
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/pm2/node_modules/chokidar/node_module
s/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch"
:"any"} (current: {"os":"linux","arch":"x64"})
+ [email protected]
updated 1 package in 5.384s
$pm2 start n8n
bash: pm2: command not found
I tried to do like instruction above. Could you help me, please?