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

Support Node.js v22 #446

Closed
jerone opened this issue Nov 29, 2024 · 1 comment · Fixed by #448
Closed

Support Node.js v22 #446

jerone opened this issue Nov 29, 2024 · 1 comment · Fixed by #448

Comments

@jerone
Copy link

jerone commented Nov 29, 2024

When installing types-react-codemod on Node.js v22 it will force install version 1.3.0 of the tool.

npx types-react-codemod --version
1.3.0

Only after forcing the latest version I get the latest released version, but with an unsupported engine message:

npx types-react-codemod@latest --version
Need to install the following packages:
[email protected]
Ok to proceed? (y)

npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: '[email protected]',
npm warn EBADENGINE   required: { node: '18.x || 20.x' },
npm warn EBADENGINE   current: { node: 'v22.6.0', npm: '10.9.1' }
npm warn EBADENGINE }

3.4.1

Node.js release 22.x is an official LTS: https://github.com/nodejs/release#release-schedule


There is also an discrepant of supported Node.js versions between the documentation and the package.json. Node.js v16 seems to be dropped a while ago.

@eps1lon
Copy link
Owner

eps1lon commented Dec 2, 2024

When installing types-react-codemod on Node.js v22 it will force install version 1.3.0 of the tool.

This is the default behavior of npx. It aggressively caches the resolved versions. Using @latest with npx will ensure the latest version is always used.

Support for Node.js 22.x will be added in #448

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

Successfully merging a pull request may close this issue.

2 participants