Giter VIP home page Giter VIP logo

Comments (4)

shvargon avatar shvargon commented on July 19, 2024 3

Sorry my bad english.

In fact, this is a similar problem with this one sapper ! zlib: unexpected end of file. The zlib problem means a problem in the downloaded archive and has nothing to do with node npm or npx. Apparently degit with a bad connection deflates a broken archive. And in the future uses it.

I quote from Readme.md
... and download the associated tar file to ~ / .degit / some-user / some-repo / commithash.tar.gz if it doesn't already exist locally

And until someone commits, he will try to use it. Solving the problem by deleting the degit folder.

The question is can degit check archive integrity?

Or add an option to reload an archive like --force-upload?

from degit.

jap1968 avatar jap1968 commented on July 19, 2024 2

Same problem here with Ubuntu 18.04. It is not a Windows 7 problem, definitely!

$ npx degit sveltejs/template my-svelte-project
npx: instaló 33 en 5.374s
! zlib: Cannot read property 'length' of null
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.3 LTS
Release:	18.04
Codename:	bionic
$ uname -a
Linux HPED800 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Update: Problem solved after updating node
$ npx degit sveltejs/template my-svelte-project
npx: instaló 33 en 2.018s

cloned sveltejs/template#master to my-svelte-project

$ node -v
v10.16.3

Previously I had node v9.0.0

from degit.

rafaelcmrj avatar rafaelcmrj commented on July 19, 2024

+1

from degit.

RaminMammadzada avatar RaminMammadzada commented on July 19, 2024

Thanks @shvargon !
Deleting ~/.degit folder also helped me out.

from degit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.