generator-ionic
generator-ionic copied to clipboard
grunt serve error
When I run the cmd like this
grunt serve
the error display as below
Running "concurrent:ionic" (concurrent) task
Running "ionic:serve" (ionic) task
E:\projects\App\node_modules\grunt-contrib-compass\node_modules\tmp\li
b\tmp.js:261
throw err;
Running "watch" task
^
Error: spawn ENOENT
at errnoException (child_process.js:1001:11)
at Process.ChildProcess._handle.onexit (child_process.js:792:34)
Waiting... Warning: Use --force to continue.
Aborted due to warnings.
Execution Time (2014-12-06 05:04:28 UTC)
wiredep:app 281ms ■■ 3%
concurrent:server 4.7s ■■■■■■■■■■■■■■■■■■■■■■■■■ 57%
env:
OS windows 8.1 windows 7
node v0.10.32
npm 1.4.28
ionic 1.2.8
grunt v0.4.5
grunt-cli v0.1.13
:sos:
It works as expected on Mac..
I'm also seeing this tmp.js 261 error and compass is indeed installed, as suggested over on stackoverflow.
I tried creating a new project without compass support, and got another error though:
Running "concurrent:ionic" (concurrent) task Running "ionic:serve" (ionic) task Running "watch" task Waiting...Fatal error: spawn ENOENT
Execution Time (2014-12-08 03:18:57 UTC) loading tasks 3ms ■■■■■■■■■■■■■■■■ 23% ionic:serve 7ms ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 54% Total 13ms Warning: Use --force to continue. Aborted due to warnings.
Execution Time (2014-12-08 03:18:53 UTC) wiredep:app 204ms ■■■■ 5%
OK, nevermind, this can be resolved either way (with/without sass), by following @Flow11's windows specific fix here: https://github.com/diegonetto/generator-ionic/issues/15#issuecomment-38075095