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

next-themes fail during installation. #28

Closed
elnobun opened this issue Feb 21, 2021 · 4 comments
Closed

next-themes fail during installation. #28

elnobun opened this issue Feb 21, 2021 · 4 comments

Comments

@elnobun
Copy link

elnobun commented Feb 21, 2021

When I run npm install next-themes, I am getting this error:

npm ERR! Found: next@10.0.7
npm ERR! node_modules/next
npm ERR!   next@"10.0.7" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^9.5.5" from next-themes@0.0.10
npm ERR! node_modules/next-themes
npm ERR!   next-themes@"0.0.10" from the root project

Please advice. Thanks.

@sarthaktexas
Copy link

If you read the entire thing it says to use --force at the end of the command. @pacocoursey should fix this but he's doing cool things at @vercel I presume.

@pacocoursey
Copy link
Owner

pacocoursey commented Feb 23, 2021

I'm not able to reproduce this issue. I changed the way peer deps are specified so it shouldn't be locked to a specific version anymore. Please try installing again and let me know if this is still happening!

@sarthaktexas
Copy link

YAY 🎉! It worked! Thanks a lot @pacocoursey!

@elnobun
Copy link
Author

elnobun commented Feb 23, 2021

@pacocoursey , Thanks for fixing this issue. Thanks for the effort.

@sarthaktexas, thanks. Although using --force works, it also has its quirks. That was what I tried in the first place before reporting this issue. I don't want to be using --force to install packages in a production application. But I am glad that it's resolved now. 😊 I will be closing this issue.

@elnobun elnobun closed this as completed Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants