Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I am trying to install the next-auth@beta package and getting an error

I am receiving the error: code EUNSUPPORTEDPROTOCOL Unsupported URL Type "workspace:": workspace:*

I have updated my node to the latest recommended version.

I was able to install the next auth package in the past on a different project. But, I just created a new Next.js 14 project and the first thing I try to do is install the next-auth package but it doesn't work.

I am able to install other npm packages and the next-auth version 4 package which was the previous package.

So, I am stuck and need help with installing this package.

Thanks

like image 436
Brett Westwood Avatar asked Oct 30 '25 10:10

Brett Westwood


1 Answers

It seems that the error you're facing might be related to compatibility issues or changes in the next-auth package. To resolve this, try installing a specific version of the next-auth package that is known to work with Next.js 14.

Run the following command in your project directory:

npm i [email protected]

This will install version 5.0.0-beta.4 of the next-auth package, which might be compatible with Next.js 14.

After running this command, check if the issue persists. If you encounter any further problems or have additional questions, feel free to ask for assistance.

Hope this helps!

like image 185
Rajarshi Samaddar Avatar answered Nov 02 '25 00:11

Rajarshi Samaddar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!