nandorojo / solito

🧍‍♂️ React Native + Next.js, unified.
https://solito.dev
MIT License
3.54k stars 181 forks source link

Unable to create new solito app #242

Closed emdile closed 2 years ago

emdile commented 2 years ago

I use npx create-solito-app@latest my-solito-app and i get this :

🧑‍🎤 Creating solito app...

Creating a new solito app in my-solito-app... my-solito-app folder created. Copying template into my-solito-app...

blank template selected.

[solito] Failed to download example

Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close at new NodeError (node:internal/errors:393:5) at Unpack. (node:internal/streams/pipeline:352:14) at Unpack.emit (node:events:525:35) at [maybeClose] (C:\Users\Owner\AppData\Local\npm-cache_npx\a2e881e9997dfd2a\node_modules\create-solito-app\dist\index.js:22:79239) at Unpack.e.ondone (C:\Users\Owner\AppData\Local\npm-cache_npx\a2e881e9997dfd2a\node_modules\create-solito-app\dist\index.js:22:77780) at Unpack.emit (node:events:513:28) at [emit] (C:\Users\Owner\AppData\Local\npm-cache_npx\a2e881e9997dfd2a\node_modules\create-solito-app\dist\index.js:22:67104) at [maybeEnd] (C:\Users\Owner\AppData\Local\npm-cache_npx\a2e881e9997dfd2a\node_modules\create-solito-app\dist\index.js:22:68751) at [consumeChunk] (C:\Users\Owner\AppData\Local\npm-cache_npx\a2e881e9997dfd2a\node_modules\create-solito-app\dist\index.js:22:68815) at Unzip. (C:\Users\Owner\AppData\Local\npm-cache_npx\a2e881e9997dfd2a\node_modules\create-solito-app\dist\index.js:22:68138) { code: 'ERR_STREAM_PREMATURE_CLOSE' }

node version: 18.12.1

nandorojo commented 2 years ago

can you try node 16

emdile commented 2 years ago

can you try node 16

oki. i will try to see

emdile commented 2 years ago

It's work with node 16

nandorojo commented 2 years ago

Fixed for node 18 https://github.com/nandorojo/solito/commit/10fa718aa54e5860dc02280c14389d29321629c4