-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Installation instructions produce package resolve error #675
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
Comments
I couldn't reproduce this. Here's my log:
Have you tried with |
I just did and that worked. Still leaving this issue open as I'd argue npm should work as well :) |
@hanneskaeufler I think it's probably an issue with your environment, as I couldn't reproduce the issue. Maybe check your npm config / globally installed packages? |
Hey! Thank you for your bug report! It looks like that you installed one of those dependencies in the past and that you have an incorrect version cached. mkdir foo && cd foo && npx create-next-app . && npm install tailwindcss@latest postcss@latest autoprefixer@latest
I'll PR a change that ensures this behaviour, I'll close this issue once merged! |
Yarn can correctly use the latest version automatically. For some reason NPM itself can't, even after running `npm cache clean --force`, which should clean the cache. It's a bit unfortunate to include this extra bloat, but what can you do... Fixes: https://github.com/tailwindlabs/tailwindcss/issues/3077
Yarn can correctly use the latest version automatically. For some reason NPM itself can't, even after running `npm cache clean --force`, which should clean the cache. It's a bit unfortunate to include this extra bloat, but what can you do... Fixes: #675
That did the trick, thanks so much for the quick fix and help. Rock on ✌️ |
Ran into a similar problem while doing the getting tutorial on next.sj. Command to install tailwindcss is:
I was able to fix the problem by following these steps:
The first step can also be executed with the |
Describe the problem:
I tried to start a next.js project as per instructions.
mkdir foo && cd foo && npx create-next-app .
That installs cleanly
Now on to installing tailwind as per instructions
npm install tailwindcss postcss autoprefixer
Link to a minimal reproduction:
This one-liner reliably errors out for me:
The text was updated successfully, but these errors were encountered: