adonisjs / web-starter-kit

Starter kit for creating traditional server rendered applications using AdonisJS
18 stars 7 forks source link

Install script not working - Failed to download template from registry #10

Closed jarle closed 4 months ago

jarle commented 4 months ago

Package version

n/a

Describe the bug

I run the start script npm init adonisjs -- -K=web

That gives the following error:

❯ Where should we create the project? · ./my-adonisjs-app
[ wait ] Failed to download template ...
[ error ] Failed to download template from registry: Failed to download web template info from https://raw.githubusercontent.com/unjs/giget/main/templates/web.json: 404 Not Found

Reproduction repo

No response

Julien-R44 commented 4 months ago

Strange it works fine for me. Can you try with npm init adonisjs@latest -- -K=web instead ?

What if you do not pass the -K argument and instead select the template from the prompt ?

jarle commented 4 months ago

Both of the commands you suggested worked for me:

The original command was copied from the readme and still gives the same error for me.

RomainLanz commented 4 months ago

The readme has to be updated, we must use @latest to ensure loading the latest version of the script.

Julien-R44 commented 4 months ago

Updated the readme