node-pre-gyp Appveyor build failing for Windows x86 using Node 4.4.3
See original GitHub issueI was having trouble building for Windows x86 using Node.js 4.4.3, when I noticed that the Appveyor build for node-pre-gyp itself is failing for the same reason:
ENOENT: no such file or directory in readCAFile
The failed build can be seen here:
https://ci.appveyor.com/project/Mapbox/node-pre-gyp/build/1.0.373/job/h12w3ymhbyg6ltq6#L481
The build for Windows x64 using Node 4.4.3 succeeds, however.
I see that the node-gyp command is failing, but I thought perhaps node-pre-gyp might be missing something for the setup for the 4.4.3 release.
Any thoughts as to what is missing here? Now that 4.4.3 is the LTS version, it would be great to be able to have nice precompiled binaries for it.
Thank you!
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (10 by maintainers)
Top Results From Across the Web
Please install Nodejs v18 - new builds are failing, looks like ...
Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (404) Not Found." At C:\Program Files\AppVeyor\ ...
Read more >node.js - Error with npm install - a pre-gyp error - Stack Overflow
build error node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\simon\node_modules\ ...
Read more >node-pre-gyp - npm
Appveyor can build binaries and publish the results per commit and supports: Windows Visual Studio 2013 and related compilers; Both 64 bit (x64) ......
Read more >node_modules/node-pre-gyp · master - Gitlab @ CCI
For a hello world example of a module packaged with node-pre-gyp see ... See Appveyor Automation for how to auto-publish builds on Windows....
Read more >3954c74e54719c6ab73b..
0ad-0.0.18-mga-system-valgrind.patch 0ad-0.0.23b-alpha-unix-build.tar.xz ... In-tests-show-the-exception-on-failure.patch apache-mod_auth_gssapi.spec ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hm, this is getting stranger.
The error is intermittent, sometimes it occurs and sometimes it does not.
I’ve only been able to reproduce it with
npm testwhich sometimes errors like on AppVeyor (sometimes not):If I run the same command
directly from the command line it always succeeds:
My current hunch is that the problem just occurs with the tests and not with
node-pre-gyp/node-gyp/gypper se, asmochashells out tonode-pre-gypwhich shells out topre-gypwhich shells out togyp.I think somewhere on the way the environment gets screwed (sometimes, don’t know yet when and why) and thus results in failures.
This
shelling-outstructure also makes this problem a nightmare to debug: If I attach to and step through themochaprocess I cannot continue to step intonode-pre-gypwhen it gets executed. Same if I attach tonode-pre-gypandpre-gypgets called, and so on.I’ve got a two step work around and I filed a bug with node-gyp.
The error we see is that the string
undefinedisn’t a file. I’m only seeing this on 32bit windows machines with node 4.3 and 4.4. I haven’t checked others.The work around is to set the
cafileoption to a real file, I chosepackage.json. Then we get a second bug where even though it hasn’t found a cert in package.json it still tries to use one. So you have to disablestrict-ssl. We get some warnings but it works and doesn’t seem to affect other node versions.I added these to install phase in
appveyor.yml