node.js — Running Less.js for windows with Clean-Css enabled get «object has no method ‘install’ error — Stack Overflow



Take the 2-minute tour ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It’s 100% free.

i am using the following git:less.js-windows. i’ve 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 get the following error:

TypeError: Object # has no method ‘install’ at PluginManager.addPlugin (C:Usersoscar.poloDownloadsless.js-windows-v2.1.1binnode_moduleslessliblessplugin-manager.js:28:12) at PluginManager.addPlugins (C:Usersoscar.poloDownloadsless.js-windows-v2.1.1binnode_moduleslessliblessplugin-manager.js:18:18) at Object.render (C:Usersoscar.poloDownloadsless.js-windows-v2.1.1binnode_moduleslessliblessrender.js:31:27) at C:Usersoscar.poloDownloadsless.js-windows-v2.1.1binnode_moduleslessliblessrender.js:18:24 at doResolve (C:Usersoscar.poloDownloadsless.js-windows-v2.1.1binnode_modulespromiselibcore.js:91:5) at new Promise (C:Usersoscar.poloDownloadsless.js-windows-v2.1.1binnode_modulespromiselibcore.js:71:3) at Object.render (C:Usersoscar.poloDownloadsless.js-windows-v2.1.1binnode_moduleslessliblessrender.js:17:20) at parseLessFile (C:Usersoscar.poloDownloadsless.js-windows-v2.1.1binnode_moduleslessbinlessc:381:10) at evalmachine.:266:14 at C:Usersoscar.poloDownloadsless.js-windows-v2.1.1binnode_modulesgraceful-fsgraceful-fs.js:102:5

any ideas whats wrong?

asked Dec 11 ’14 at 11:54
Ori Price324219

Parameter —clean-css means that *.css file will be compressed using clean-css tool. Maybe you have no it installed? Try this to install it:

npm install -g less-plugin-clean-css

This may help you: Clean CSS

answered Dec 15 ’14 at 8:55
Igor913
done that also… it doesn’t work. thanks.Ori Price Dec 16 ’14 at 11:10

I’m not sure will it help, but try to do this:

lessc --clean-css main.less main.css

Because based on documentation usage it should be run with double dash before parameter "clean-css"

answered Dec 11 ’14 at 21:35
Igor913
Thanks, already tried that, doesn’t workOri Price Dec 14 ’14 at 7:51

Your Answer

asked

7 months ago

viewed

401 times

active

7 months ago

Looking for a job?

Hot Network Questions

more hot questions

Technology Life / Arts Culture / Recreation Science Other
  1. Stack Overflow
  2. Server Fault
  3. Super User
  4. Web Applications
  5. Ask Ubuntu
  6. Webmasters
  7. Game Development
  8. TeX — LaTeX
  1. Programmers
  2. Unix & Linux
  3. Ask Different (Apple)
  4. WordPress Development
  5. Geographic Information Systems
  6. Electrical Engineering
  7. Android Enthusiasts
  8. Information Security
  1. Database Administrators
  2. Drupal Answers
  3. SharePoint
  4. User Experience
  5. Mathematica
  6. Salesforce
  7. more (14)
  1. Photography
  2. Science Fiction & Fantasy
  3. Graphic Design
  4. Seasoned Advice (cooking)
  5. Home Improvement
  6. Personal Finance & Money
  7. Academia
  8. more (10)
  1. English Language & Usage
  2. Skeptics
  3. Mi Yodeya (Judaism)
  4. Travel
  5. Christianity
  6. Arqade (gaming)
  7. Bicycles
  8. Role-playing Games
  9. more (21)
  1. Mathematics
  2. Cross Validated (stats)
  3. Theoretical Computer Science
  4. Physics
  5. MathOverflow
  6. more (7)
  1. Stack Apps
  2. Meta Stack Exchange
  3. Area 51
  4. Stack Overflow Careers
site design / logo © 2015 stack exchange inc; user contributions licensed under cc by-sa 3.0 with attribution required
rev 2015.7.28.2756


http://stackoverflow.com/questions/27422269/running-less-js-for-windows-with-clean-css-enabled-get-object-has-no-method-in

Губарь Маргарита Александровна