sh: tailwindcss: command not found #4953
Replies: 5 comments 15 replies
-
Try to delete your node_module and reinstall all the package. |
Beta Was this translation helpful? Give feedback.
-
If your computer is MacOS, run brew install tailwindcss |
Beta Was this translation helpful? Give feedback.
-
I thought |
Beta Was this translation helpful? Give feedback.
-
npm install -D tailwindcss@3 postcss autoprefixer It worked after running this command and add in index.css |
Beta Was this translation helpful? Give feedback.
-
Perhaps VERSION 3 is what you needmy initial setup was just React 19 in Webpack, and i'm not going to install tailwind globally
npm install -D tailwindcss@3 postcss autoprefixer
npx tailwindcss init -p
make sure your content lists where your template files are. for me it is on src and it should detect the /** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{js,jsx}"],
theme: {
extend: {},
},
plugins: [],
};
add these lines at the top of your @tailwind base;
@tailwind components;
@tailwind utilities;
my
npm start
export default function App() {
return (
<h1 className="text-3xl font-bold underline">
Hello world!
</h1>
)
} |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use TailwindCSS, but I can't
Everytime I put npx tailwindcss -o tailwind.css, the bash gives me a: sh: tailwindcss: command not found
The steps I follow are:
I have had use npm install -D tailwindcss@latest postcss@latest autoprefixer@latest
And also npm i -D tailwindcss
npx tailwindcss -o tailwind.css
It gives me: sh: tailwindcss: command not found
Beta Was this translation helpful? Give feedback.
All reactions