DEV Community

Franco Andrés
Franco Andrés

Posted on

1 1

Resolviendo el error de degit en la instalación de create-astro

Si algún día pruebas Astro es posible que tengas el siguiente error en la instalación:

franqsanz@Franco/mnt/c/Users/franc/Desktop/random-books npm init astro
npx: installed 18 in 10.622s

Welcome to Astro! (create-astro v0.6.0)
If you encounter a problem, visit https://github.com/snowpackjs/astro/issues to search or file a new issue.

> Prepare for liftoff.
> Gathering mission details...
✔ Which app template would you like to use? › Starter Kit (Generic)
✔ Which frameworks would you like to use? › Preact, React, Solid, Svelte, Vue
> Copying project files...
zlib: unexpected end of file
Enter fullscreen mode Exit fullscreen mode

Este error:

zlib: unexpected end of file
Enter fullscreen mode Exit fullscreen mode

Si es que todavía no fue resuelto por el equipo de Astro (es muy probable que esté resuelto en el futuro).

Solución

Sólo debes eliminar la carpeta .degit de la siguiente forma:

rm -rf ~/.degit/github/snowpackjs
Enter fullscreen mode Exit fullscreen mode

Y luego volver a probar la instalación y esto es todo!

degit es lento en create-astro, así que debes tener paciencia.

Aquí un hilo en github sobre el problema

¡Saludos!

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay