jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.53k stars 4.02k forks source link

Gulp serve is failing on Windows 7 #1862

Closed tuncayxx closed 9 years ago

tuncayxx commented 9 years ago

I have all tools installed om Windows but when typing Gulp serve it fails saying compass.bat couldn't be found even I installed compass via nodejs ?

gmarziou commented 9 years ago

How did you install compass via nodejs?

As far as I know nodejs does provide only grunt or gulp plugins for compass. What do you get when you run compass -v?

That said if you don't need compass and only sass compilation you can use node-sass as explained in issue #1527. Eventually, it will be merged in jhipster.

tuncayxx commented 9 years ago

it is actually "grunt serve" that is NOT working.

I installed grunt as described on JHIpster setup page like: npm install -g grunt-cli

I get this error:

C:\code\jhipster-demo>grunt serve Running "clean:server" (clean) task

0 paths cleaned. Running "wiredep:app" (wiredep) task Running "wiredep:test" (wiredep) task Running "ngconstant:dev" (ngconstant) task Creating module demoApp at src/main/webapp/scripts/app/app.constants.js...OK Running "compass:server" (compass) task Warning: Command failed: C:\Windows\system32\cmd.exe /s /c "compass.bat --version" 'compass.bat' blev ikke genkendt som en intern eller ekstern kommando, et program eller en batchfil. Use --force to continue.

Aborted due to warnings.

gmarziou commented 9 years ago
Warning: Command failed: C:\Windows\system32\cmd.exe /s /c "compass.bat --version"
'compass.bat' blev ikke genkendt som en intern eller ekstern kommando,

No it 's not grunt the problem, as I told you JHipster's build uses compass command for grunt or gulp. Read my first answer with questions I asked and recommendations I gave, they are still valid.

tuncayxx commented 9 years ago

Why is there difference between Mac and Windows when it just works when you type grunt serve in Mac but the command not working in the Windows ? I didn't run compass - v yet .

gmarziou commented 9 years ago

Because Windows sucks for NodeJS, I know it from first hand experience as I work on both Windows and Ubuntu.

deepu105 commented 9 years ago

Have u installed ruby for windows? In mac it comes preinstalled, in windows you have to install it and then the compass gem, hope you did that as its clearly mentioned in the docs, sorry i didn't go through this thread fully so if i missed something sorry.

Anyways we are moving to node sass which is faster and cleaner so i wouldn't be worried about compass anymore On 16 Aug 2015 02:19, "Gaël Marziou" notifications@github.com wrote:

Because Windows sucks for NodeJS, I know it from first hand experience as I work on both Windows and Ubuntu.

— Reply to this email directly or view it on GitHub https://github.com/jhipster/generator-jhipster/issues/1862#issuecomment-131417140 .

tuncayxx commented 9 years ago

What should I exactly do in order to make the 'grunt serve' to work on Windows 7 as on Mac?

The documentation on jhipster https://jhipster.github.io/installation.html does not saying anything about Ruby, gem and node-sass ?

tuncayxx commented 9 years ago

Thank you, guys,

I installed Ruby and installed compass via Ruby and it is working now :)

gmarziou commented 9 years ago

Ironically, next release will use node-sass and so remove the requirements on Ruby and Compass.

tuncayxx commented 9 years ago

Nice :)

-tuncay

On 18 August 2015 at 00:01, Gaël Marziou notifications@github.com wrote:

Ironically, next release will use node-sass and so remove the requirements on Ruby and Compass.

— Reply to this email directly or view it on GitHub https://github.com/jhipster/generator-jhipster/issues/1862#issuecomment-131976617 .