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

Update package.json engines for node.js 23.X #326

Closed
vpmedia opened this issue Nov 4, 2024 · 4 comments
Closed

Update package.json engines for node.js 23.X #326

vpmedia opened this issue Nov 4, 2024 · 4 comments
Labels
question Further information is requested wontfix This will not be worked on

Comments

@vpmedia
Copy link

vpmedia commented Nov 4, 2024

Getting the following warning from npm:

npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: 'zod-sockets@2.1.0',
npm warn EBADENGINE   required: { node: '^18.18.0 || ^20.9.0 || ^22.0.0' },
npm warn EBADENGINE   current: { node: 'v23.1.0', npm: '10.9.0' }
npm warn EBADENGINE }
@RobinTail RobinTail added the question Further information is requested label Nov 4, 2024
@RobinTail
Copy link
Owner

RobinTail commented Nov 4, 2024

Hello @vpmedia ,

Node 23 is not supposed to be used in production environments, it's an intermediate short-term preview before making Node 24.

current state

This is the semantics of all odd Node.js versions you can read about on

However, if you need to run this on Node 23 (which is not yet tested by the way), for some development reasons or whatever, you can use a flag of your package manager installation command:

  • --ignore-engines for yarn
  • --force for npm

@RobinTail RobinTail added the wontfix This will not be worked on label Nov 4, 2024
@RobinTail
Copy link
Owner

tested it on Node 23, @vpmedia — should work for you with npm install --force flag

@vpmedia
Copy link
Author

vpmedia commented Nov 4, 2024

Thanks for the clarification. In production we are using v22.X, but in my local dev env homebrew auto updated to v23.X so I supposed it is the current stable release. Thanks!

@RobinTail
Copy link
Owner

sure, @vpmedia
consider nvm, so that you can switch between versions easily:

https://formulae.brew.sh/formula/nvm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants