Unsupported engine
Answered
African Slender-snouted Crocodil… posted this in #help-forum
African Slender-snouted CrocodileOP
I'm running Next.js 15 codemods (upgrade from Next.js v14 to v15) and I stumbled upon this:
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE package: 'types-react-codemod@3.4.1',
npm warn EBADENGINE required: { node: '18.x || 20.x' },
npm warn EBADENGINE current: { node: 'v22.11.0', npm: '10.9.0' }
npm warn EBADENGINE }
I found here https://nextjs.org/blog/next-15 the following:
[Breaking] The minimum required Node.js version has been updated to 18.18.0 (PR)
Where can I find the max version of Node.js that Next.js supports?
Or is this warning just for the codemod?
Next.js always support the latest LTS version of Node.js?
If I ignore the npm warn will the types-react-codemod@3.4.1 work properly?
Please give me some official docs. Thanks!
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE package: 'types-react-codemod@3.4.1',
npm warn EBADENGINE required: { node: '18.x || 20.x' },
npm warn EBADENGINE current: { node: 'v22.11.0', npm: '10.9.0' }
npm warn EBADENGINE }
I found here https://nextjs.org/blog/next-15 the following:
[Breaking] The minimum required Node.js version has been updated to 18.18.0 (PR)
Where can I find the max version of Node.js that Next.js supports?
Or is this warning just for the codemod?
Next.js always support the latest LTS version of Node.js?
If I ignore the npm warn will the types-react-codemod@3.4.1 work properly?
Please give me some official docs. Thanks!
Answered by Asian black bear
npm warn EBADENGINE required: { node: '18.x || 20.x' },
npm warn EBADENGINE current: { node: 'v22.11.0', npm: '10.9.0' }
It just shows that v22 is not explicitly supported, but there's nothing to worry about. It was created before v22 was LTS if I'm not mistaken.
3 Replies
Asian black bear
npm warn EBADENGINE required: { node: '18.x || 20.x' },
npm warn EBADENGINE current: { node: 'v22.11.0', npm: '10.9.0' }
It just shows that v22 is not explicitly supported, but there's nothing to worry about. It was created before v22 was LTS if I'm not mistaken.
Answer
Asian black bear
The codemod package is 2 months old so it hasn't received the necessary updates.
African Slender-snouted CrocodileOP
Oh, I see. Well, I guess I can confidently continue with upgrading my app! 😄