I ready an application in node js. The app is working properly in localhost. Now I want to deploy it on namecheap but it shows an error when I click on run npm install. it shows an error, the error is
npm WARN lifecycle The node binary used for scripts is /home/yourhikf/nodevenv/devapi.yourguide.pk/14/bin/node but npm is using /opt/alt/alt-nodejs14/root/usr/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
Command failed: /home/yourhikf/nodevenv/devapi.yourguide.pk/14/lib/node_modules/jpegoptim-bin/vendor/jpegoptim --version
/home/yourhikf/nodevenv/devapi.yourguide.pk/14/lib/node_modules/jpegoptim-bin/vendor/jpegoptim: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory
jpegoptim pre-build test failed
Error: Command failed: /bin/sh -c ./configure --prefix="/home/yourhikf/nodevenv/devapi.yourguide.pk/14/lib/node_modules/jpegoptim-bin/vendor" --bindir="/home/yourhikf/nodevenv/devapi.yourguide.pk/14/lib/node_modules/jpegoptim-bin/vendor"
/bin/sh: ./configure: Permission denied
at /home/yourhikf/nodevenv/devapi.yourguide.pk/14/lib/node_modules/bin-build/node_modules/execa/index.js:231:11
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Promise.all (index 0)
npm WARN yourguide-backend@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! jpegoptim-bin@6.0.1 postinstall: `node lib/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the jpegoptim-bin@6.0.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/yourhikf/.npm/_logs/2022-09-07T04_20_35_119Z-debug.log
This error is triggered when I want to install the following package.
"imagemin-jpegoptim": "^7.0.0"
But when I remove this package from package.json file, then all the other packages is install perfectly. I am very disturb that why this error is occurred. kindly tell me the solution of this problem.