• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Question Where are node and npm? node not found, opt/plesk/node/17 not on server

timkarl

New Pleskian
Hello there,

I have installed Node.js accordingly to the instructions. Because my server does not just serve static files I have to start some scripts (webpack, server start). I tried starting the scripts ("start") manually with the FTP access (my website server is: Linux ae80d 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64):
bash-5.0$ npm run start
bash: npm: command not found
According to the forum and according to the logs in the .npm directory in my root; node and npm are in opt/plesk/node/bin/17. Here is a part of such log file:
0 verbose cli [
0 verbose cli '/opt/plesk/node/17/bin/node',
0 verbose cli '/opt/plesk/node/17/bin/npm',
0 verbose cli 'install'
0 verbose cli ]
1 info using [email protected]
2 info using [email protected]
Now when running the scripts in the GUI of Plesk I get the same error. When I write /opt/plesk/node/17/bin/npm instead of npm command in package.json it works via the GUI but fails at a subscript of webpack which uses the node command somewhere. So apparently Plesk has access to these files and the node_packages, which I do not have?!

So to my question: Where can I find this bin?

I have chrooted access but there is no opt directory. I am sadly not too experienced in server management but rather in local web-developing and standard Linux stuff. I am glad for any help!
 
Back
Top