• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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