Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

! zlib: unexpected end of file #924

Closed
jet10000 opened this issue Oct 3, 2019 · 3 comments
Closed

! zlib: unexpected end of file #924

jet10000 opened this issue Oct 3, 2019 · 3 comments

Comments

@jet10000
Copy link

jet10000 commented Oct 3, 2019

npx degit "sveltejs/sapper-template#rollup" my-app
npx: installed 33 in 20.401s
! zlib: unexpected end of file

Windows7, node v10.16.3, npm 6.9.0

I run npm cache clean --force, but still have this problem, and I found the my-app folder is empty.


But I can clone webpack's

npx degit "sveltejs/sapper-template#webpack" my-app
npx: installed 33 in 13.577s
> cloned sveltejs/sapper-template#webpack to my-app
@Conduitry
Copy link
Member

I haven't seen this reported before, and it's not a bug in Sapper. It wouldn't surprise me if this were a network issue or a dropped connection, especially given that it's taking npx 20 seconds to download degit. If you're having trouble with degit, you can just download a zip of the appropriate branch.

@shvargon
Copy link

@Conduitry
Sorry my bad english.

Just in case, I’ll leave a decision suddenly who else comes across. There was the same problem. npm cache clean --force will not help because the broken one is not the npm cache, but the archive downloaded by degit. Since degit is trying to use the cache, it does not pump it. It is solved by deleting the degit folder which in linux is located on the $HOME/.degit path. Or you can delete the cache exactly svelte ~/.degit/github/sveltejs.

@rohitsg
Copy link

rohitsg commented Mar 4, 2022

deleting $HOME/.degit folder works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants