error after installing ionic start sass
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)
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,
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 >_<
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.
I have the same error.
When you're in the app's working directory, are you able to run gulp sass?
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.
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.
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.
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!
Thank you, it is working now.
Works! Good call. Thank you for solving this Adam.
Sounds great, thanks for testing. The next full release, 1.2.4, will have this fix in it. Thanks again!
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: )
So are you not using gulp-sass but ruby's sass version?
thanks adam! all working as expected now for me.
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
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 It looks like you have a syntax error in your sass file.
@import directive requires a url or quoted path
@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";
Great it works now :+1: (this could have taken me hours, I almost put it aside...) Thanks adam!