Skip to content

Error to try reinstalling on Next 16 #2402

@OkitegamiKyoko

Description

@OkitegamiKyoko

Checklist

Description

I had a problem with another dependency, so I deleted the directory node_modules and executed:

npm i

And just receive this message:

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @auth0/nextjs-auth0@4.11.1
npm error Found: next@16.0.1
npm error node_modules/next
npm error   next@"16.0.1" from the root project
npm error
npm error Could not resolve dependency:
npm error peer next@"^14.2.25 || ^15.2.3" from @auth0/nextjs-auth0@4.11.1
npm error node_modules/@auth0/nextjs-auth0
npm error   @auth0/nextjs-auth0@"4.11.1" from the root project
npm error
npm error Conflicting peer dependency: next@15.5.6
npm error node_modules/next
npm error   peer next@"^14.2.25 || ^15.2.3" from @auth0/nextjs-auth0@4.11.1
npm error   node_modules/@auth0/nextjs-auth0
npm error     @auth0/nextjs-auth0@"4.11.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

Reproduction

  1. Delete node_modules directory.
  2. Execute npm i

Additional context

I see a message about this error when migrating from Next15, but I now receive this message always when I reinstall my project on a clean installation

nextjs-auth0 version

4.11.0

Next.js version

16.0.1

Node.js version

24.11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions