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.

degit throws could not download file error on every try.

See original GitHub issue

Hi!

I have tried using degit, but no matter what repo I try to clone it throws a ! could not download ... error. I forked and cloned the repo was able to pinpoint the error to this line https://github.com/Rich-Harris/degit/blob/7531fbe9b752ad4e02ead547150d2e4ed1ec933a/src/index.js#L129

I’ve added a console.log right above the line and logged the caught error which gave me this output:

degit_error

I’ve went further and located that it actually errors here on line 69: https://github.com/Rich-Harris/degit/blob/7531fbe9b752ad4e02ead547150d2e4ed1ec933a/src/utils.js#L66-L69

I think it is worth mentioning that I use volta for managing node versions, that may have an effect on permissions.

I’d be happy to help solve this, submit a PR or something, but at this point I don’t know which direction I should go.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
ducvacommented, May 19, 2020

I got this error when trying to degit a private repository. README stated that it doesn’t support private repository yet.

But I tried with -m=git option, it works.

1reaction
yuwadecommented, Jul 2, 2022

PowerShell $env:HTTPS_PROXY="http://127.0.0.1:1080" cmd set https_proxy=http://127.0.0.1:1080

I’m ok image

Read more comments on GitHub >

github_iconTop Results From Across the Web

degit - Bountysource
I have tried using degit, but no matter what repo I try to clone it throws a ! could not download ... error....
Read more >
Fix file download errors - Google Chrome Help
If you try to download a file and it doesn't work, first try to fix the error with these troubleshooting steps: Make sure...
Read more >
2 Server Error Message Reference - MySQL :: Developer Zone
Message: Can't load value from file with fixed size rows to variable. Error number: 1410 ; Symbol: ER_CANT_CREATE_USER_WITH_GRANT ; SQLSTATE: 42000.
Read more >
Error handling in Node.js - LogRocket Blog
The error can be constructed and thrown or passed to some function. ... $node main.js { Error: ENOENT: no such file or directory, ......
Read more >
Pro Tools Error Codes - What They Mean And How To Fix Them
When clicking on a track or in the clip list you may not have the appropriate permissions for one of the files you...
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