-
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
Support repositories other than npmjs #1450
Comments
This sounds like a problem with your Jenkins setup. The installer needs to be able to create a temporary directory to be able to run npm to download the binary executable. And running npm is necessary to pick up any custom registry and/or proxy configuration. One potential workaround is to download the binary executable yourself before installing esbuild and then use the Another workaround may be to use the People can have very custom requirements for all sorts of unusual environments that they want to install esbuild in and I'm trying to avoid adding lots of flags to the install script for everyone. Ideally the install script would "just work" and the package manager would deal with the OS-specific installation instead. When I get some time next I'd like to experiment with an alternate installation strategy instead of going down the road of adding lots of flags: #789. The plan is to use |
in the end it was not an issue. It seems that the initial failure was because the automatic onboarding process failed so npm install did not work. I have solved the some problem (different libs required on different OSs) with optional dependencies as you suggest. It does work but users are left with a big ugly error message as the linux library attempts to install and compile itself on windows. It all works but a lot of usesr have reported it as a failed installation due to the ugly error. Just FYI. |
We currently can't install esbuild on our CI platform. I suspect that the initial attempt to install from npm fails as it's trying to create a temporary folder which will fail on our jenkins build due to file system access permissions. Installing from npmjs then fails as access to that is blocked. We have our own private npm repository.
The way this is usually handled is that an environment variable is used to specify where compiled binaries can be downloaded from.
The text was updated successfully, but these errors were encountered: