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

Ionic beta12 and CLI v1.2.3 breaks with `ionic run -l -c -s` (Live Reload)

Open darrynten opened this issue 12 years ago • 4 comments

After > bower install 'ionic#1.0.0-beta.12'

> ionic run -l -c -s

Setup Live Reload Error getting IPv4 address: Error: EMFILE: Too many opened files. (CLI v1.2.3)

(libuv) Failed to create kqueue (24) Assertion failed: (uv__stream_fd(stream) >= 0), function uv__read_start_common, file ../deps/uv/src/unix/stream.c, line 1297. [1] 892 abort ionic run -l -c -s

Revert and try again:

> bower install 'ionic#1.0.0-beta.11'

> ionic run -l -c -s

Setup Live Reload Running dev server: http://_..**._:8100 Running live reload server: http://.**._._:35729 Ionic server commands, enter:

All works fine

Edit: Also breaks with CLI 1.2.4

darrynten avatar Sep 11 '14 14:09 darrynten

I've made an update to have a more friendly error, along with not watching the www/lib folder. So in your case, if the www/lib folder is no longer being watched you probably won't get the error any more. But when the project gets to have more than 256 files, it'll have better instructions on what to do.

Would you be able to test the beta by using npm install -g [email protected] and let me know how it goes? Thanks

adamdbradley avatar Sep 11 '14 19:09 adamdbradley

Thanks, it's working now. Been running it for the last few hours and all is fine.

darrynten avatar Sep 12 '14 09:09 darrynten

Great, thanks for creating the issue

adamdbradley avatar Sep 12 '14 13:09 adamdbradley

The 1.2.5-beta1 works perfectly. My projects contains many bowers file in lib dir and was crashing with 1.2.4.

AlexisReverte avatar Sep 15 '14 20:09 AlexisReverte