Skip to content

Conversation

@TheOtterlord
Copy link
Member

Changes

  • Suppresses node deprecation warnings when running npm create astro
  • We'll probably need to revisit our fs usage, but this is a quick fix for v24.5+

Testing

N/A

Docs

N/A

@changeset-bot
Copy link

changeset-bot bot commented Aug 12, 2025

⚠️ No Changeset found

Latest commit: 04fdfa5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the pkg: create-astro Related to the `create-astro` package (scope) label Aug 12, 2025
@TheOtterlord TheOtterlord linked an issue Aug 12, 2025 that may be closed by this pull request
1 task
Copy link
Contributor

@bjohansebas bjohansebas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t feel comfortable disabling all warnings, I would prefer to use process.noDeprecation as a temporary solution.

@TheOtterlord
Copy link
Member Author

Thanks! I had no idea that was settable, but it works.

@bjohansebas
Copy link
Contributor

I’ve been consulting with some Node.js folks, and while there’s no way to programmatically disable the warning for a specific deprecation, we could do something like this:

process.on('warning', (warning) => {
  // Ignore a warning
  if ()
  // Log other warnings to the console
  console.error(warning);
});

It’s probably better, since disabling all deprecations could mean a new one is added and we never know it was introduced.

@florian-lefebvre
Copy link
Member

I would prefer fixing the actual issue rather than hiding it

@bjohansebas
Copy link
Contributor

see #14219

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: create-astro Related to the `create-astro` package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DeprecationWarning when running npm create astro@latest with node v24.5.0

4 participants