ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

error after installing ionic start sass

Open dm0n opened this issue 12 years ago • 34 comments

After installing ionic start sass then running ionic serve I get the following error: events.js:72 throw er; // Unhandled 'error' event ^ Error: spawn ENOENT at errnoException (child_process.js:988:11) at Process.ChildProcess._handle.onexit (child_process.js:779:34)

dm0n avatar Aug 29 '14 15:08 dm0n

Hello,

I got the same error on Windows 8.

I just follow each step (for android), and after the command ionic start sass it creates this Unhandled error

Ionic serve is only working if I remove "sass":true from ionic.project file

I tried Manual Installation but same error.

Any news about this error?

Thanks,

cmellinas avatar Sep 04 '14 09:09 cmellinas

no info as yet someone else reported it a couple of days ago to on the main branch https://github.com/driftyco/ionic/issues/2123

the issue is definitely woth the sass part just unfortunate this is what i really need to work >_<

dm0n avatar Sep 04 '14 12:09 dm0n

Same issue here exactly. After sass setup it writes the above mentioned error and aborts. And indeed, only setting sass to false in the ionic.project file, overrides the problem, but leaves me without sass compilation.

rhumbus avatar Sep 04 '14 15:09 rhumbus

I have the same error.

david-gang avatar Sep 08 '14 13:09 david-gang

When you're in the app's working directory, are you able to run gulp sass?

adamdbradley avatar Sep 08 '14 14:09 adamdbradley

I have same problem on W8.1. Yes, I'm able to run gulp sass. I think that it is something connected with node js how handle path to file in windows environment when spawn process.

aleho70 avatar Sep 08 '14 14:09 aleho70

Same here: I'm also able to run gulp sass, and I use a gulp watch instead to be able to work with sass in ionic.

rhumbus avatar Sep 08 '14 20:09 rhumbus

I think @aleho70 is correct, and looks like using spawn (which we use to kick off the gulp process) has its issues: https://github.com/joyent/node/issues/2318

I'll toy around with some solutions, thanks.

adamdbradley avatar Sep 08 '14 20:09 adamdbradley

I changed gulp's spawn process to use https://www.npmjs.org/package/cross-spawn instead.

To test it out, please run npm install -g [email protected] and let me know how it goes. Thanks!

adamdbradley avatar Sep 08 '14 21:09 adamdbradley

Thank you, it is working now.

aleho70 avatar Sep 08 '14 21:09 aleho70

Works! Good call. Thank you for solving this Adam.

rhumbus avatar Sep 08 '14 21:09 rhumbus

Sounds great, thanks for testing. The next full release, 1.2.4, will have this fix in it. Thanks again!

adamdbradley avatar Sep 09 '14 03:09 adamdbradley

Thx. But one new problem after installed [email protected]. After a few times changing scss file, the ionic serve server stops updating the view in web browser and says:

cmd.exe /D /C C:/Ruby200/bin/scss.bat --no-cache --update ionic.app.scss:ionic.app.css error ionic.app.scss (Line 11: File to import not found or unreadable: www/lib/ionic/scss/ionic. Load paths: )

ivawzh avatar Sep 09 '14 09:09 ivawzh

So are you not using gulp-sass but ruby's sass version?

adamdbradley avatar Sep 09 '14 20:09 adamdbradley

thanks adam! all working as expected now for me.

dm0n avatar Sep 10 '14 09:09 dm0n

Right. I think I didn't install gulp-sass correctly. After I ran npm install -g gulp-sass and npm install gulp-sass, everything seems work fine. Thanks

ivawzh avatar Sep 10 '14 11:09 ivawzh

I have got the same error:

Mike$ gulp sass
[11:53:38] Using gulpfile /CustomSass/gulpfile.js
[11:53:38] Starting 'sass'...
stream.js:94
      throw er; // Unhandled stream error in pipe.
            ^
Error: source string:26: error: @import directive requires a url or quoted path

I ran npm install -g [email protected], npm install -g gulp-sass and npm install gulp-sass, but no success so far.

flymke avatar Sep 15 '14 05:09 flymke

@flymke It looks like you have a syntax error in your sass file.

@import directive requires a url or quoted path

adamdbradley avatar Sep 15 '14 13:09 adamdbradley

@adamdbradley Ok many thanks - I will check that. Actually I have tried to use the sass file from learn.ionicframework.com (http://learn.ionicframework.com/formulas/working-with-sass/)

Now as you say that, I noticed there is a wrong quotation mark in the example:

// Include all of Ionic.
@import “www/lib/ionic/scss/ionic";

flymke avatar Sep 15 '14 19:09 flymke

Great it works now :+1: (this could have taken me hours, I almost put it aside...) Thanks adam!

flymke avatar Sep 15 '14 19:09 flymke