Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Keep getting Exit Code: 127 error #176

Open
scottfriebel opened this issue Apr 14, 2022 · 1 comment
Open

Keep getting Exit Code: 127 error #176

scottfriebel opened this issue Apr 14, 2022 · 1 comment

Comments

@scottfriebel
Copy link

I can only seem to get the error code 127 back when trying to run Puphpeteer.
[message] => The command "'/node/v16.14.2/bin/node' '/var/www/html/vendor/nesk/puphpeteer/src/get-puppeteer-version.js'" failed. Exit Code: 127(Command not found)

I'm passing the full path to node to executable_path when setting it up. I've been using /usr/local/.nvm/versions/node/v16.14.2/bin/node but I also tried copying node here /node/v16.14.2/bin. In either/both places node is owned by www-data (the user that php runs as) and has execute permissions (755).

Running '/node/v16.14.2/bin/node' '/var/www/html/vendor/nesk/puphpeteer/src/get-puppeteer-version.js' on the command line returns "5.5.0" so node is there and executable and the get-puppeteer-version script exists.

If anyone has any insight into why I'd be getting this error, that'd be great! Thanks!

Environment:

  • OS: Ubuntu 18.04.4
  • Node version: 16.14.2
  • PHP version 8.1
@Raja-Omer-Mustafa
Copy link

I am facing the same problem and the solution work for me is
echo 'export PATH=$PATH:/usr/local/nvm/versions/node/v18.8.0/bin/node' >> $HOME/.bashrc
source $HOME/.bashrc
I install node version using nvm on ubuntu

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants