-
Notifications
You must be signed in to change notification settings - Fork 558
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
NodeJS_20_jll needs "node" command to be defined #9233
Comments
How are things executed on the Julia side? |
I don't know how to reproduce the workflow locally, and specifically for Windows I don't have access to it, but I think you want to do something along these lines (I couldn't test it, so I don't know if it's correct, but take the gist of it) # Add NodeJS PATH to the existing PATH environment variable
path_sep = Sys.iswindows() ? ';' : ':'
path_list = prepend!(split(get(ENV, "PATH", ""), path_sep), NodeJS_20_jll.PATH_list)
path = join(path_list, path_sep)
npm_cmd = addenv(`$(npm)`, "PATH" => path)
cd(dir) do
run(`$(npm_cmd) --version`)
run(`$(npm_cmd) install`)
end |
Ahh I see, thanks! That's good advice :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ultrapoci posted this issue: JuliaPluto/PlutoPDF.jl#17
PlutoPDF uses NodeJS_20_jll to first install JS dependencies with the
npm
binary in a scratch space, and thennode
to run a pltuo-to-pdf export.It looks like installing dependencies is not working on Windows because one of the dependencies assumes that the
node
command is defined during thenpm
install process. Is this something that BinaryBuilder can help with?Here is part of the original issue:
This is caused by this line in the "Project.toml" of puppeteer (js dependency that we are trying to install):
https://github.com/puppeteer/puppeteer/blob/14717a7f3ec3d2012abbc4ce0e7ac00bf4375655/packages/puppeteer/package.json#L41
The text was updated successfully, but these errors were encountered: