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

Possible update Node 18 #4575

Closed
analuznoro opened this issue May 17, 2022 · 10 comments
Closed

Possible update Node 18 #4575

analuznoro opened this issue May 17, 2022 · 10 comments
Labels
enhancement New feature or request

Comments

@analuznoro
Copy link

Provider type

Keycloak

Environment

System:
OS: Linux 5.15 Manjaro Linux
CPU: (6) x64 Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
Memory: 10.94 GB / 15.45 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 18.1.0 - /bin/node
npm: 8.5.5 - /bin/npm
Browsers:
Chromium: 101.0.4951.64
Firefox: 100.0

Reproduction URL

https://github.com/nextauthjs/next-auth-example

Describe the issue

HI NextAuth Team!
After updating node it appears:

error next-auth@4.3.4: The engine "node" is incompatible with this module. Expected version "^12.19.0 || ^14.15.0 || ^16.13.0". Got "18.1.0"
error Found incompatible module.

Can you add compatibility to version 18 ?

How to reproduce

Update nodejs to 18

Expected behavior

The package should install successfully

@analuznoro analuznoro added providers triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. labels May 17, 2022
@ThangHuuVu ThangHuuVu added enhancement New feature or request and removed providers triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. labels May 18, 2022
@nexxeln
Copy link

nexxeln commented May 18, 2022

Same issue here, was just about to create an issue. I'm on node v17.9.0 though.
Code_iLEiCgk9GP

@kostadinnm
Copy link

I have the same issue. I'm using Manjaro, which comes with default node 18 at present. I am getting this error when trying to setup a project that uses next-auth, so be glad if you're able to bump the version to 18, if possible?!

@pfcodes
Copy link

pfcodes commented May 27, 2022

Add --ignore-engines flag for install and upgrade operations to get around this for now.

@nexxeln
Copy link

nexxeln commented May 28, 2022

Add --ignore-engines flag for install and upgrade operations to get around this for now.

Thank you this works for me.

@balazsorban44
Copy link
Member

balazsorban44 commented May 31, 2022

--ignore-engines is the current recommendation. We are working on making next-auth agnostic of Node.js. (#4299)

@ar4hc
Copy link

ar4hc commented Sep 5, 2022

for users of pnpm coming here:
The setting is engine-strict

Set in .npmrc :

engine-strict=false

@openarun
Copy link

openarun commented Oct 5, 2022

Any update with it please? using yarn.
error next-auth@4.12.2: The engine "node" is incompatible with this module. Expected version "^12.19.0 || ^14.15.0 || ^16.13.0". Got "18.9.1"

@yanickrochon
Copy link

My question is : If --ignore-engines "fixes" the problem (i.e. it ignores the warning), why not pushing a new version of this module with adding Node 18 to the engine requirements? Is there really an incompatibility, or is this message simply because v18 is missing from the engines list?

Because if there is really an incompatibility, then the solution is to downgrade to Node v16 until further notice. But if everything is fine, requiring to ignore the error (this issue was created many months ago already!) is not a proper solution.

Which is it?

@barakadanny
Copy link

Add --ignore-engines flag for install and upgrade operations to get around this for now.

this really saved me after 2 days trying to by pass that

@alvissraghnall
Copy link

Any update with it please? using yarn. error next-auth@4.12.2: The engine "node" is incompatible with this module. Expected version "^12.19.0 || ^14.15.0 || ^16.13.0". Got "18.9.1"

used --ignore-engines and it worked just fine with yarn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests