I am trying to use clean-css to minify my CSS files using a simple terminal command on Mac. I have tried everything from installing an older version of clean-css like this:
npm install clean-css@3.4.25 --save
to installing the command line version like this:
npm install clean-css-cli --save
The installation seems to go fine, but then whenever I try to run
cleancss -o styles.min.css styles.css
I get an error saying, "command not found." Am I missing something?