Medium / phantomjs

NPM wrapper for installing phantomjs
Other
1.42k stars 436 forks source link

/usr/bin/env node no such file or directory #741

Closed MatthiasGlatthornVerdure closed 7 years ago

MatthiasGlatthornVerdure commented 7 years ago

I'm trying to execute phantomjs, using php-phantomjs. But this $client->getEngine()->debug(true); $client->getLog(); gives me "/usr/bin/env node no such file or directory". What I'm I getting wrong here?

MatthiasGlatthornVerdure commented 7 years ago

It was the trailing slash of the url, which caused that error. So this was a php-phantomjs an not phantomjs-prebuilt issue. You can read more about this issue here.