question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rebuild on Windows fails with missing "deps" directory

See original GitHub issue

Hi 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:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gschiercommented, Feb 22, 2017

Just letting you know that the new version now works as expected.

1reaction
JCMaiscommented, Feb 15, 2017

After some debugging, it looks like the check being used to see if you’re in a git repo returns a false positive if the parent directory is a git repo

You are right! I didn’t think of that. I could parse the result of git rev-parse --git-dir or git rev-parse --show-toplevel and make sure it’s the same directory of the module.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found