Skip to content

astro check without @astrojs/check dependency fails after installation #15842

@KTrain5169

Description

@KTrain5169

Astro Info

Astro                    v6.0.0
Node                     v24.14.0
System                   Windows (x64)
Package Manager          pnpm
Output                   static
Adapter                  @astrojs/cloudflare
Integrations             @astrojs/preact

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

Running astro check without the dependency causes the command to fail after installing the required dependencies.

Steps to reproduce (because a minimal reproduction repo would be too much):

  1. pnpm create astro@latest and proceed with any choice (or clone a template, this does not require any specific scaffolding)
  2. cd into the new directory just created
  3. Run pnpm astro check
  4. Accept the dependency installation step
  5. Observe the error in the terminal after a successful installation
    (thank you to @delucis for the original list on discord! ended up modifying it to be a bit shorter)

quick note: this bug apparently doesn't happen on StackBlitz, but is at least confirmed to be on Windows and Mac. Linux doesn't appear to reproduce this bug (tested on Ubuntu Server), but WSL has not been tested.

What's the expected result?

Astro checks successfully after installing @astrojs/check.

Link to Minimal Reproducible Example

Uh, https://github.com/withastro/astro/tree/main/examples/basics I guess? sorry I just needed to fill out this question

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

Labels

- P4: importantViolate documented behavior or significantly impacts performance (priority)pkg: astroRelated to the core `astro` package (scope)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions