I use yarn create next-app for my nextjs in react project.But next-auth is not installed in my project. My node version is LTS 16.15.1 and yarn version is 1.22.18, npm version is 8.9.0. I tried in latest version and old version of nodejs but I am getting this error again and again.Kindly resolve my issue how to install next-auth in my project.
yarn add v1.22.18
warning ../../../package.json: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
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.2.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this
command.
Got it from @pfcodes: Add --ignore-engines
flag for install and upgrade operations to get around this for now. here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.