• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Resolved node.js pm2 not found

Qusay

Basic Pleskian
Server operating system version
Debian 10
Plesk version and microupdate number
18.0.51
npm start in node.js app

> [email protected] start
> pm2 start src/index.js --name=dayz-leaderboard-bot

sh: 1: pm2: not found

Screenshot 2023-04-18 at 00-29-41 Node.js on test.golden-squad.com - Plesk Obsidian 18.0.51.png
 
Sounds like it's either not installed or not setup globally. Fire up terminal and run;

sudo npm install -g pm2
 
Sounds like it's either not installed or not setup globally. Fire up terminal and run;

sudo npm install -g pm2
but im already install node.js with npm
and it's work see
it's work fine under node.js
and other
 

Attachments

  • Screenshot 2023-04-18 at 00-40-32 SSH Terminal root - Plesk Obsidian 18.0.51.png
    Screenshot 2023-04-18 at 00-40-32 SSH Terminal root - Plesk Obsidian 18.0.51.png
    15.1 KB · Views: 15
/opt/plesk/node/19/bin/npm install -g pm2
it's fixed from support help
 

Attachments

  • Screenshot 2023-04-18 at 01-32-15 Submit a request – Plesk.png
    Screenshot 2023-04-18 at 01-32-15 Submit a request – Plesk.png
    12.7 KB · Views: 45
Back
Top