tailwind-css

Issues installing Tailwindcss, specifically with "npx tailwindcss init"


Im following the documentation but im stuck right at the npx tailwindcss init https://tailwindcss.com/docs/installation

enter image description here


Solution

    1. Check if your directory is initialized as a node project, i.e. it contains package.json file. If not then do this:
    $/> npm init -y
    
    1. Install tailwindcss as a dev dependency (optional as a dev dependency)
    $/> npm i -D tailwindcss