Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace the "node" shell command in shell.js with process.execPath #50

Closed
wants to merge 1 commit into from

Conversation

t3rmin4t0r
Copy link
Contributor

On platforms like Ubuntu/Debian where the node command has been taken by a throwback command (node(8) - Node front end for AX.25, NET/ROM, Rose and TCP), the shell js exec goes into an infinite loop because the node command exits with status 1.

I ran into this error while figuring out how to build pdf.js

mozilla/pdf.js#2608

I use process.execPath to invoke the node command again, so that it picks up and runs the sub command with "/usr/bin/nodejs" instead of "node".

This had to be quoted again for the shell, to accommodate win32 versions as well which need to run "C:\Program Files" which has a space in it.

@arturadib
Copy link
Collaborator

fixed in 4233530, with due credit. thanks!

/cc mozilla/pdf.js#2608 @yurydelendik

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

Successfully merging this pull request may close these issues.

None yet

2 participants