Closed divofred closed 7 months ago
Hi @divofred
If you select a template other than x-basic
, for example cloudflare-workers
, and run it, don't you get the same error?
This seems not to be a HonoX issue but a create-hono
issue.
That's true @yusukebe. What do you suggest I do?
@divofred
Is git
installed?
@divofred
Is
git
installed?
Yes it is
Hmm..
Hey @sor4chi! What do you know about this?
I'm not sure. It seems like a windows specific bug, but I don't have the environment to reproduce it myself.
What do you suggest I do? @sor4chi
It works now @sor4chi @yusukebe. I just updated my Windows, and it started working. 🎉
What version of HonoX are you using?
create-hono version 0.4.0
What steps can reproduce the bug?
I've tried creating a x-basic hono app with Deno, yarn and npm but I still get the same error. I'd run
npm create hono@latest
oryarn create hono my-app
ordeno run -A npm:create-hono my-app
What is the expected behavior?
Create an x-basic starter file like this
├── app │ ├── global.d.ts // global type definitions │ ├── routes │ │ ├── _404.tsx // not found page │ │ ├── _error.tsx // error page │ │ ├── _renderer.tsx // renderer definition │ │ ├── about │ │ │ └── [name].tsx // matches
/about/:name
│ │ └── index.tsx // matches/
│ └── server.ts // server entry file ├── package.json ├── tsconfig.json └── vite.config.tsWhat do you see instead?
`C:\Users\fredr\AppData\Local\npm-cache_npx\6bbb1d6f54609fb5\node_modules\create-hono\bin:9918 this[_onError](new ZlibError(err)); ^
ZlibError: zlib: unexpected end of file at Unzip.write (C:\Users\fredr\AppData\Local\npm-cache_npx\6bbb1d6f54609fb5\node_modules\create-hono\bin:9918:26) at Unzip.flush (C:\Users\fredr\AppData\Local\npm-cache_npx\6bbb1d6f54609fb5\node_modules\create-hono\bin:9883:14) at Unzip.end (C:\Users\fredr\AppData\Local\npm-cache_npx\6bbb1d6f54609fb5\node_modules\create-hono\bin:9888:14)
at Unpack.end (C:\Users\fredr\AppData\Local\npm-cache_npx\6bbb1d6f54609fb5\node_modules\create-hono\bin:12740:25) at Pipe.end (C:\Users\fredr\AppData\Local\npm-cache_npx\6bbb1d6f54609fb5\node_modules\create-hono\bin:9338:21)
at [emitEnd2] (C:\Users\fredr\AppData\Local\npm-cache_npx\6bbb1d6f54609fb5\node_modules\create-hono\bin:9699:13) at [emitEnd] (C:\Users\fredr\AppData\Local\npm-cache_npx\6bbb1d6f54609fb5\node_modules\create-hono\bin:9686:25) at ReadStream.emit (C:\Users\fredr\AppData\Local\npm-cache_npx\6bbb1d6f54609fb5\node_modules\create-hono\bin:9643:31) at ReadStream.emit (C:\Users\fredr\AppData\Local\npm-cache_npx\6bbb1d6f54609fb5\node_modules\create-hono\bin:12103:26) at [maybeEmitEnd] (C:\Users\fredr\AppData\Local\npm-cache_npx\6bbb1d6f54609fb5\node_modules\create-hono\bin:9629:16) { code: 'Z_BUF_ERROR', errno: -5, recoverable: false, file: 'C:\Users\fredr\.degit\github\honojs\starter/cb09fdcd58830a1ef005be1e418a0f235c9e69d3.tar.gz', cwd: 'C:/Users/fredr/OneDrive/Desktop/WORKSPACE/Honox/my-app', tarCode: 'TAR_ABORT' }
Node.js v20.9.0 npm ERR! code 1 npm ERR! path C:\Users\fredr\OneDrive\Desktop\WORKSPACE\Honox npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c create-hono my-app`
Additional information
Node version -
20.9.0
OS -Windows 10 pro Build 19045