Running Less.js for windows with Clean-Css get enabled "object has no 'install' method error
I am using the following git: less.js-windows . i installed clean-css with the following command:
npm install -g less-plugin-clean-css
now i am trying to run lessc with this:
lessc -clean-css main.less main.css
and I am getting the following error:
TypeError: Object # has no 'install' method in PluginManager.addPlugin (C: \ Users \ oscar.polo \ Downloads \ less.js-windows-v2.1.1 \ bin \ node_modules \ less \ lib \ less \ plugin-manager. js: 28: 12) in PluginManager.addPlugins (C: \ Users \ oscar.polo \ Downloads \ less.js-windows-v2.1.1 \ bin \ node_modules \ less \ lib \ less \ plugin-manager.js: 18: 18) in Object.render (C: \ Users \ oscar.polo \ Downloads \ less.js-windows-v2.1.1 \ bin \ node_modules \ less \ lib \ less \ render.js: 31:27) in C: \ Users \ oscar.polo \ Downloads \ less.js-windows-v2.1.1 \ bin \ node_modules \ less \ lib \ less \ render.js: 18:24 on doResolve (C: \ Users \ oscar.polo \ Downloads \ less .js-windows-v2.1.1 \ bin \ node_modules \ prom \ lib \ core.js: 91: 5) in the new Promise (C: \ Users \ oscar.polo \ Downloads \ less.js-windows-v2.1.1 \ bin \ node_modules \ prom \ lib \ core.js: 71: 3) in Object.render (C: \ Users \ oscar.polo \ Downloads \ less.js-windows-v2.1.1 \ bin \ node_modules \ less \ lib \ less \ render.js: 17:20) in parseLessFile (C: \ Users \ oscar.polo \ Downloads \ less.js-windows-v2.1.1 \ bin \ node_modules \ less \ bin \ lessc: 381: 10) on evalmachine. in C: \ Users \ oscar.polo \ Downloads \ less.js-windows-v2.1.1 \ bin \ node_modules \ graceful-fs \ graceful-fs.js: 102: 5
any ideas wrong?
source to share
I'm not sure if this helps, but try to do this:
lessc --clean-css main.less main.css
As based on the documentation the use should be done with a double dash before the "clean-css" parameter
source to share