chrism / emberjs-tailwind-purgecss

A guide to using Tailwind v1.0 and Purge CSS with EmberJS
71 stars 12 forks source link

Cannot find module 'autoprefixer' #29

Closed mcfiredrill closed 3 years ago

mcfiredrill commented 3 years ago

Got this error following the steps on a brand new ember app.

 $ npx tailwind init app/tailwind/config.js                                            
Cannot find module 'autoprefixer'
Require stack:
- /home/tony/src/myproject/node_modules/tailwindcss/lib/cli/commands/build.js
- /home/tony/src/myproject/node_modules/tailwindcss/lib/cli/commands/index.js
- /home/tony/src/myproject/node_modules/tailwindcss/lib/cli/main.js
- /home/tony/src/myproject/node_modules/tailwindcss/lib/cli.js
mcfiredrill commented 3 years ago

Fixed it:

yarn add -D autoprefixer