-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
esbuild fails to install when using an asdf
version of yarn/npm
#2785
Comments
Do you perhaps have the |
Yup, I certainly do. No idea where that came from:
|
|
I'll close this and figure out what set that variable for me. |
Did you ever figure out what it was? Other people are also reporting this as a bug in esbuild now too. Edit: Looks like this bug was introduced by https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=esbuild |
I did not directly figure out what it was, but I suspect that it was from an AUR build of esbuild, yes. A different AUR package that I was using depends on the AUR esbuild, which had been run recently. So my suspicion is that it somehow polluted my env. |
It came back after an AUR build of esbuild today. So I'm pretty sure it's from that. |
Yeah, I found it. It installs a file in
|
Thanks for confirming. I tried to work around this from the installer side of things by ignoring |
I had the same issue. I simply launched command |
Same issues |
I use asdf to manage my nodejs versions as I switch between various projects with varying dependencies. However, it seems that the esbuild install fails to determine the appropriate path to the esbuild binary that gets installed and it falls back to using a system path
/usr/bin/esbuild
which does not contain the binary.I can work around it by linking the installed esbuild into my
/usr/bin
:-> sudo ln -sf /home/lakin/.config/yarn/global/node_modules/@esbuild/linux-x64/bin/esbuild /usr/bin/esbuild
I'm actually trying to install redwoodjs, so don't mind the references to it in this log of what happens. Also, I've tried with raw npm:
and
and none of them work. The log output:
I'd be happy to take a shot at fixing this, but I don't have experience with packaging in node, so might need a couple pointers of how to go about testing it once I've made the change as well as some amount of direction as to what the appropriate fix should be. I would assume that you'd want to properly detect the final destination of the binary file somehow and then inject that into the esbuild script
The text was updated successfully, but these errors were encountered: