This a guidance not a problem to solve, to help those which have the same issue I had
Enable Node support in Plesk Onyx:
In case you need additional node versions which does not come with the default node support installation:
nvm install v4.8.4
cp -R ~/.nvm/versions/node/v4.8.4/ /opt/plesk/node/
plesk sbin nodemng register /opt/plesk/node/v4.8.4/bin/node
I had some troubles installing additional node versions into Plesk to run my meteorJS app on my server instead of their hosting service.
Node. js support is available in both Plesk for Linux and Plesk for Windows.
Plesk Onyx is the newest and smoothest upgrade of the traditional Plesk control panel. Originally released in 2001, Plesk is one of the leading control panel solutions for both Linux and Windows servers.
Thanks for the question :) As some people were using this method, they ran into this problem:
/opt/plesk/node/v12.13.1/bin/npm install
/usr/bin/env: 'node': No such file or directory
The NPM script is looking for the default node location by asking it to env
.
The plesk-version of the NPM files are slightly modified to point to the correct node version.
To fix this, make a small edit to the npm file:
/opt/plesk/node/[your_version]/bin/npm
file.#!/opt/plesk/node/[your_version]/bin/node
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With