• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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: 9
/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: 21
Back
Top