Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing from template is broken #1244

Closed
1 task
jeanlucaslima opened this issue Dec 6, 2023 · 2 comments
Closed
1 task

Installing from template is broken #1244

jeanlucaslima opened this issue Dec 6, 2023 · 2 comments

Comments

@jeanlucaslima
Copy link

What version of starlight are you using?

0.14.0

What version of astro are you using?

4.0.2

What package manager are you using?

npm

What operating system are you using?

Mac

What browser are you using?

Chrome

Describe the Bug

The command npm create astro@latest -- --template starlight is not working.

Steps to reproduce:

  1. Create a new project using starlight template as instructed on the Getting Started tutorial.
  2. Go through the steps
  3. Observe it fail

Here's how it looks like:
image

If you go to the directory created (successfully) and just run npm install it gives this error:
image

Here's the package.json file:

 {
  "name": "confraria.tech",
  "type": "module",
  "version": "0.0.1",
  "scripts": {
    "dev": "astro dev",
    "start": "astro dev",
    "build": "astro build",
    "preview": "astro preview",
    "astro": "astro"
  },
  "dependencies": {
    "@astrojs/starlight": "^0.14.0",
    "astro": "^4.0.1",
    "sharp": "^0.32.5"
  }
}

This is likely caused by the fact the template is trying to fetch the latest release.

Link to Minimal Reproducible Example

https://stackblitz.com/github/withastro/starlight/tree/main/examples/basics?file=README.md

Participation

  • I am willing to submit a pull request for this issue.
@jeanlucaslima
Copy link
Author

Temporary solution is to run with npm install --legacy-peer-deps

@delucis
Copy link
Member

delucis commented Dec 6, 2023

Just merged our release PR (#1240) so Starlight v0.15 with Astro 4 support should be released any second now to fix this! Thanks again for reporting and apologies for the roadbump.

@delucis delucis closed this as completed Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants