Rebuild on Windows fails with missing "deps" directory
See original GitHub issueHi there,
I’m trying to build the lib on Windows. However, when installed via NPM, the node-libcurl/deps
directory seems to be missing (I see that it’s in .npmignore).
This causes npm install node-libcurl --build-from-source
to fail with the following error:
C:\Users\IEUser\Desktop\insomnia>npm install node-libcurl --build-from-source
> node-libcurl@1.0.0 install C:\Users\IEUser\Desktop\insomnia\node_modules\node-libcurl
> node-pre-gyp install --fallback-to-build
File: C:\Users\IEUser\Desktop\insomnia\node_modules\node-libcurl\deps\curl-for-windows\libssh2.gyp not found.
gyp: Call to 'node "C:\Users\IEUser\Desktop\insomnia\node_modules\node-libcurl/tools/retrieve-win-deps.js"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
Is there a way to get around this missing dependency?
Note: it works fine without --build-from-source
(using the prebuilt bins), but I need to be able to rebuild it for use with Electron.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Could not copy the file deps.json because it was not found ...
Sometimes I am getting three errors on rebuilding solution: Could not copy the file deps.json because it was not found. Microsoft.Common.
Read more >Troubleshooting NuGet Package Restore in Visual Studio
When using packages.config, the error means that the package is not installed in the packages folder at the solution root. This situation ...
Read more >How to prevent VSCommunity 2019 from rebuilding a file ...
I set the MSBuild project build output verbosity in Options->Projects and Solutions->Build And Run to Diagnostic, and it in fact shows the file ......
Read more >Repair failed installations of Exchange Cumulative and ...
This issue occurs if the SharedWebConfig.config file is missing from one of the following locations: C:\Program Files\Microsoft\Exchange Server\ ...
Read more >NuGet Package Restore | Microsoft Learn
NuGet Package Restore restores all of a project's dependencies that ... NuGet then reports a failure for only the last source in the...
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
Just letting you know that the new version now works as expected.
You are right! I didn’t think of that. I could parse the result of
git rev-parse --git-dir
orgit rev-parse --show-toplevel
and make sure it’s the same directory of the module.