- Following error occur during the installing node dependencies for Libxmljs extension:
PLESK_ERROR: Installing the application dependencies.
Execution filemng has failed with exit code 1, stdout:
> firstname.lastname@example.org 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! email@example.com install: `node-pre-gyp install --fallback-to-build --loglevel http`
npm ERR! spawn ENOENT
npm ERR! Failed at the firstname.lastname@example.org 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
- Node.js version 7.4.0 is set in Domain > example.com > Node.js > Node.js version.
Libxmljs application doesn't support Node.js version 7.4.0.
- Login into Plesk.
- Set Node.js version to 6.9.1 in Domain > example.com > Node.js > Node.js Version:
- Install Libxmljs application once more.