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

npx auth secret: No Framework detected error #20

Open
souravpurkait360 opened this issue Dec 19, 2024 · 1 comment
Open

npx auth secret: No Framework detected error #20

souravpurkait360 opened this issue Dec 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@souravpurkait360
Copy link

Environment

System:
OS: macOS 15.0
CPU: (8) arm64 Apple M1
Memory: 113.38 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 23.4.0 - ~/.nvm/versions/node/v23.4.0/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v23.4.0/bin/yarn
npm: 10.9.2 - ~/.nvm/versions/node/v23.4.0/bin/npm
Browsers:
Chrome: 131.0.6778.140
Safari: 18.0
npmPackages:
next: 15.1.0 => 15.1.0
next-auth: ^4.24.11 => 4.24.11
react: 19.0.0 => 19.0.0

Describe the issue

I am still getting this error.

npx auth@latest secret
Need to install the following packages:
[email protected]
Ok to proceed? (y) y

Multiple supported frameworks detected: next, express
No framework detected. Currently supported frameworks are: next, sveltekit, expres

Anyone else facing this?
I have installed:

"next": "15.1.0",
"next-auth": "^5.0.0-beta.25",

My node version is

23.4.0

I tried deleting all node modules, clearing yarn cache and then reinstalling everything. But still facing same error.
There were already one closed issue exists but solution npx auth@latest secret is not working. Its not solving the problem and giving same error.

Please help!

How to reproduce

Run npx auth secret or npx auth@latest secret
You will see error

Multiple supported frameworks detected: next, express
No framework detected. Currently supported frameworks are: next, sveltekit, express

Expected behavior

The auth key should be generated and added to env file without any error.

@souravpurkait360 souravpurkait360 added the bug Something isn't working label Dec 19, 2024
@thethirdswan
Copy link

I faced the same problem, I tried uninstalling express first, then running the npx auth secret again, then it finally worked. After the secret was generated I reinstalled express.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants