-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Allow file: in sharp_libvips_binary_host #2495
Comments
Before downloading libvips tarballs, sharp will look in npm's cache: Lines 95 to 98 in f4e259d
Lines 31 to 38 in f4e259d
On Windows, this directory should be |
Wow that was fast. I just checked and placing the tar file in the cache dir worked. Are you doing something similar for
Not sure however if relying on the npm-cache dir is the way to go. Especially, considering that on the build server I will not have access to ensure that the file is there. I also do not know how npm handles the cache directory. I also tried to provide my custom cert files in order to mitigate the
I tried all the solutions outlined here, but I kept getting that error. Any idea how to resolve that? |
Thanks @lovell I tried it with the env variable before, but the certificates that I was using weren't correct. I asked the IT dep to look into it and they provided me with a new cert file. It worked using that file. So, there is no need for this workaround. I will now have to convice the IT team to allow accessing github on our build agents. This is currently blocked by the firewall, but there is nothing you can do about it :) You already helped enough. Thanks again! |
Hi, I have the same issue. I am also working in a restricted Linux build environment where I do not have access to the npm cache directory. We are forced to manually upload the libvips headers into our internal artifact repository which does not follow the required path structure explained here. Is there any possibility to set an env variable pointing to the path of the local file? |
@gochax Please subscribe to prebuild/prebuild-install#137 |
What are you trying to achieve?
It would be nice to provide pre-built binaries from the file system directly to circumvent the need for a proxy. I work in a very restrictive environment and would like to provide the binaries in the repository itself. When trying to fetch the pre-built binary I get the following error:
I tried to set
sharp_libvips_binary_host
in the.npmrc
file of the project tofile:bin/
but received the following error:Have you searched for similar feature requests?
Yes
What would you expect the API to look like?
Allowing the file protocol to serve the binary.
sharp_libvips_binary_host=file:bin/
What alternatives have you considered?
ERR! sharp self signed certificate in certificate chain
?The text was updated successfully, but these errors were encountered: