payload icon indicating copy to clipboard operation
payload copied to clipboard

Error ZlibError: zlib: unexpected end of file no create project in folder

Open lliccien opened this issue 2 years ago • 3 comments

Link to reproduction

No response

Describe the Bug

When I run npx create-payload-app@latest it asks me for the template folder and the database and after a while it throws the error:

ZlibError: zlib: unexpected end of file

To Reproduce

npx create-payload-app@latest

Welcome to Payload. Let's create a project!

✔ Project name? … resume-dev ✔ Choose project template › blank ✔ Select a database › MongoDB ✔ Enter MongoDB connection string … mongodb://127.0.0.1/resume-dev

Creating project in /Users/lliccien/www/resume-dev

ZlibError: zlib: unexpected end of file at Unzip.write (/Users/lliccien/.npm/_npx/a78262c2ecc815d9/node_modules/degit/dist/index-688c5d50.js:1322:22) at Unzip.flush (/Users/lliccien/.npm/_npx/a78262c2ecc815d9/node_modules/degit/dist/index-688c5d50.js:1273:10) at Unzip.end (/Users/lliccien/.npm/_npx/a78262c2ecc815d9/node_modules/degit/dist/index-688c5d50.js:1279:10) at Unpack.end (/Users/lliccien/.npm/_npx/a78262c2ecc815d9/node_modules/degit/dist/index-688c5d50.js:3989:21) at Yallist. (/Users/lliccien/.npm/_npx/a78262c2ecc815d9/node_modules/degit/dist/index-688c5d50.js:903:18) at Yallist.forEach (/Users/lliccien/.npm/_npx/a78262c2ecc815d9/node_modules/degit/dist/index-688c5d50.js:240:8) at ReadStream.emit (/Users/lliccien/.npm/_npx/a78262c2ecc815d9/node_modules/degit/dist/index-688c5d50.js:900:18) at ReadStream.emit (/Users/lliccien/.npm/_npx/a78262c2ecc815d9/node_modules/degit/dist/index-688c5d50.js:3262:22) at [maybeEmitEnd] (/Users/lliccien/.npm/_npx/a78262c2ecc815d9/node_modules/degit/dist/index-688c5d50.js:864:12) at ReadStream.end (/Users/lliccien/.npm/_npx/a78262c2ecc815d9/node_modules/degit/dist/index-688c5d50.js:744:27) { code: 'Z_BUF_ERROR', errno: -5, recoverable: false, file: '/Users/lliccien/.degit/github/payloadcms/payload/1c0d43c61a0e29bc9de50a4e608cb7dff9d5cd48.tar.gz', cwd: '/Users/lliccien/www/resume-dev', tarCode: 'TAR_ABORT' }

Payload Version

node -v && npm -v v20.11.1 10.2.4

Adapters and Plugins

No response

lliccien avatar Mar 21 '24 00:03 lliccien

Hey, I failed to reproduce this. Have you verified that your installation of node is without issues?

Can reopen this issue with more reproducible information.

paulpopus avatar Apr 03 '24 19:04 paulpopus

Might be related to issue #7463. The same fix could work here as well.

TimSchulzRC avatar Aug 26 '24 07:08 TimSchulzRC

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.

github-actions[bot] avatar Sep 06 '24 20:09 github-actions[bot]