degit icon indicating copy to clipboard operation
degit copied to clipboard

ERROR: could not download { GITLAB TAR URL} when fetching repo from gitlab

Open Slyracoon23 opened this issue 4 years ago • 2 comments

This is my command that I typed into terminal

$ npx degit [email protected]:ionic-react-course/hello-world.git hello-world

! could not download https://gitlab.com/ionic-react-course/hello-world/repository/archive.tar.gz?ref=d133d476024c928008e81fe27e5c0257bfb8c010

Apparently, there is an issue with fetching gitlab repos using degit. If you go to the repo(https://gitlab.com/ionic-react-course/hello-world) on your browser, you can download any tar file by clicking the download button for your any repo version e.g. I am downloading a random history of this repo https://gitlab.com/ionic-react-course/hello-world/-/archive/8c62ec71f6eb4f4b9b2af05f32783876b6b00534/hello-world-8c62ec71f6eb4f4b9b2af05f32783876b6b00534.tar.gz

The problem seems to be that gitlab has changed their tar file archive url.

Hopefully someone can reproduce the issue

Slyracoon23 avatar Apr 13 '21 05:04 Slyracoon23

I have the same issue, tried what ducva did adding -m=git parameter

image

after writing 'yes'...

image

Hope it helps.

Quantme avatar May 05 '21 02:05 Quantme

Same problem here on Windows, cannot download from Gitlab. Any suggestions? Or schould we use tiged?

djusHa avatar Jun 25 '21 15:06 djusHa