• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue /usr/bin/env: node: No such file or directory

Shibumi

Basic Pleskian
Hi,
we have manually installed nodejs version 10.14.2 on our CentOS Server with Plesk Onyx Version 17.8.11 Update #35 as described on this website:
How to add a new node.js version for the Node.js Manager on Plesk?

The version shows up correctly in PLESK an we can select the version for the domain. But when we try to execute NPM install we get the following message:
/usr/bin/env: node: No such file or directory

How can we add the PATH /opt/plesk/node/v10.14.2/bin for PLESK?

For command line we could add the PATH manually but not for the control panel.

Thank you in advance for any help.

With best regards,
 
This seemed to work just fine for me:

nvm install v10.15.0
cp -R ~/.nvm/versions/node/v10.15.0/ /opt/plesk/node/
plesk sbin nodemng register /opt/plesk/node/v10.15.0/bin/node​

I ran NPM Install, on the app and restarted it (it was previously running just fine on node v9.10.1
 
I did that too. Version 10.14.2 shows up correctly in Plesk but I get that message only when selecting this version. All the other versions installed with Plesk are have no problems running NPM install.
 
i have a clean version of plesk on a brand new server, went to extensions and installed node and am using node 12, i am getting the same error when trying to run my node app.

/usr/bin/env: node: No such file or directory

but when i do
[root@host httpdocs]# ll /usr/bin/env
-rwxr-xr-x 1 root root 29008 Aug 20 2019 /usr/bin/env

So you can clearly see that it does indeed exist.
 
Hi, I fix the issue creating a soft link with the next command:

ln -s /opt/plesk/node/12/bin/node /usr/bin/node

This create a link in /usr/bin/node to /opt/plesk/node/12/bin/node. The Plesk interface search the node file in /usr/bin/.

I don't know why plesk does that but knowing that it looks for the file in that path, I have created the soft link and it has worked for me.
 
Glad I found this, ivan.martil's symlink fix worked perfectly for me when adding node v14.15.1
Hi, I fix the issue creating a soft link with the next command:

ln -s /opt/plesk/node/12/bin/node /usr/bin/node

This create a link in /usr/bin/node to /opt/plesk/node/12/bin/node. The Plesk interface search the node file in /usr/bin/.

I don't know why plesk does that but knowing that it looks for the file in that path, I have created the soft link and it has worked for me.
 
Back
Top