Comments (4)
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.
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.
+1
from degit.
Thanks @shvargon !
Deleting ~/.degit
folder also helped me out.
from degit.
Related Issues (20)
- This link is not downloading. HOT 2
- Throw error if subdirectory doesn't exist
- How many commits are stored in the .git history? HOT 2
- --mode=git doesn't seem to respect git hash provided to degit HOT 5
- `degit --help` not working. Help file is missing. HOT 2
- Error out of the box HOT 4
- Implementation for Private Repo HOT 1
- why install success , but use it error HOT 7
- feat: auto suggestion HOT 1
- Trying to get a subdirectory in git mode with the js api HOT 1
- Can degit handle template upgrading? HOT 2
- Archive HOT 6
- Files end of line change from crlf to lf with degit
- add support for Azure DevOps
- Issues HOT 1
- [Feature Request] Add the alias of a repo
- [suggestion] template string variables and/or project names
- Support Bitbucket Data Center (the self-managed Bitbucket)
- Degit a github subfolder without removing the /tree/main HOT 2
- Subfolders don't work on bitbucket
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from degit.