-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Platform Specific Build is Not Downloaded #91
Comments
AFAIK, node binary extensions do not support cross compilation. If you want to skip downloading a precompiled version, just define an environment variable |
BTW, what is the source of
Likely it is specific to I do use AWS and build my code in a docker image running on a similar hardware. Sometimes the hardware should be identical to run-time because some processor-intensive packages (e.g., various compression utilities in my case) use a CPU-specific code generation. I believe that AWS Lambda is well documented and the best bet is to replicate its environment to do a build if possible. |
Ok. I think the problem is I assumed the --arch=x64 --platform=linux parameters were universal but they are not (I actually used them installing sharp). My bad. I guess will have to setup docker and run my builds from there. Thanks for your help. |
I'll copy the content of this ticket to the wiki. |
I am on a Windows machine trying to download the Linux distribution of metascraper using the following npm install command:
npm install --arch=x64 --platform=linux metascraper
This seems to work just fine.
Somewhere down the dependency line, re2 is installed however, instead of installing the linux version (which I do see on your release page) I get the Windows version. This breaks my code (AWS Lambda). I have tried doing an re2 install afterwards (npm install --arch=x64 --platform=linux re2) but I still only get the Windows build.
How can I download and install the Linux version?
Thanks
The text was updated successfully, but these errors were encountered: