question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cleancss, command not found if global isn't used while installing clean-css-cli

See original GitHub issue

Hi, Awesome tool.

cleancss isn’t available on command line unless I install it globally. Pasting output for problem.

➜  Server git:(minify-assests) ✗ npm install --save clean-css-cli
~/Server
└── clean-css-cli@4.1.6 

➜  Server git:(minify-assests) ✗ cleancss
zsh: command not found: cleancss

In the documentation it’s mentioned to install it locally using npm install clean-css-cli. Is it intended behavior?

I am using macOS, Sierra v10.12.4.

Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jakubpawlowiczcommented, Jul 18, 2017

Yes, we need to make it clear only the global install puts cleancss in the global $PATH. PRs are always welcome!

On 18 Jul 2017, at 11:03, Gaurav notifications@github.com wrote:

@jakubpawlowicz

Thanks for replying.

Extremely sorry for providing wrong info, you are right uglifyjs also doesn’t work. I had two node version installed and that created confusion.

So the documentation has to be fixed, right? Submit a PR?

Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

0reactions
jakubpawlowiczcommented, Mar 31, 2022

Closing as ‘won’t fix’ as clean-css-cli is going into maintenance mode. If anyone wants to bring it back up, please submit a PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cleancss, command not found if global isn't used ... - GitHub
Hi, Awesome tool. cleancss isn't available on command line unless I install it globally. Pasting output for problem.
Read more >
Clean-css NPM Command not found - Stack Overflow
If clean -css is also not in the package.json file of your project's directory, perhaps try to install it globally: npm install -g...
Read more >
clean-css-cli - npm
A command-line interface to clean-css CSS optimization library. Latest version: 5.6.1, last published: 6 months ago. Start using ...
Read more >
clean-css | Yarn - Package Manager
clean -css is a fast and efficient CSS optimizer for Node.js platform and any modern browser. According to tests it is one of...
Read more >
How to use clean-css CLI?
Clean -css is a fast and efficient Node.js library for minifying CSS files. According to tests it is one of the best available....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found