Search code examples
npmlesscloud9-ide

Cloud9, use previous version of LESS compiler


I'm trying to downgrade to a previous version of the LESS compiler, an update is causing my program to crash. I can't figure out how to do this... I've done npm install -g less@2.5.2 however when I run lessc -v it returns 2.6.0 again...

How can I change this?


Solution

  • After looking for a while, I finally stumbled upon this: https://docs.c9.io/docs/installing-npm-modules

    The global flag does not actually work as I had previously thought it did on Cloud9 (due to their security implementations). The command must be used within the project folder itself.