- Plesk Onyx
- The following error occurs for the installation of Node.js application dependencies:
PLESK_ERROR: Installing the application dependencies.
Execution filemng has failed with exit code 1, stdout:
> email@example.com install /var/www/vhosts/example.com/httpdocs/public
> node-pre-gyp install --fallback-to-build --loglevel http
, stderr: npm WARN lifecycle npm is using /opt/plesk/node/7/bin/node but there is no node binary in the current PATH. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
/usr/bin/env: node: No such file or directory
npm ERR! Linux 3.10.0-042stab123.9
npm ERR! argv "/opt/plesk/node/7/bin/node" "/opt/plesk/node/7/bin/npm" "install"
npm ERR! node v7.4.0
npm ERR! npm v4.0.5
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! firstname.lastname@example.org install: `node-pre-gyp install --fallback-to-build --loglevel http`
npm ERR! spawn ENOENT
npm ERR! Failed at the email@example.com install script 'node-pre-gyp install --fallback-to-build --loglevel http'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the libxmljs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build --loglevel http
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs libxmljs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls libxmljs
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/vhosts/example.com/httpdocs/public/npm-debug.log
The application does not support Node.js version set in Domain > example.com > Node.js > Node.js Version.
Set a lower Node.js version in Domain > example.com > Node.js > Node.js Version, for example:
If the issue persists, repeat the step 2.