pm2-nginx
pm2-nginx copied to clipboard
Unknown module
I tried installing under pm2 v 0.15.10 and got an error that the module was unknown.
$ pm2 install pm2-nginx [PM2][Module] Installing module pm2-nginx [PM2][Module] Processing... ..[PM2][Module][ERROR] Unknown module
I got the same error, still in development this module?
Its not published to NPM yet (the default way to install).
You can install it via git with pm2 install https://github.com/pm2-hive/pm2-nginx
but it currently fails with
So I guess its still in development.
Error: Cannot find module '/home/topbonus/.pm2/node_modules/package.json'
I have the same error
try the following:
git clone https://github.com/pm2-hive/pm2-nginx
pm2 install ./pm2-nginx/
I've been working on some where I had to install after cloning, and to avoid the Cannot find module and the like the approach above is what worked for me.