I’ve setup a server running my Ionic2 application and I’m trying to make it accessible from outside the VM via browser.
This is a barebones server with no GUI and no anything aside from the bare requirements to run Ionic.
However, I’m trying to run the following command, that keeps failing because I don’t have Chrome installed:
ionic run browser --address 10.1.40.206 --port 8100
but this will always fail, and worse than that, the output is nothing like the expected:
Running 'run:before' gulp task before run [18:40:12] Starting 'clean'... [18:40:12] Finished 'clean' after 104 ms [18:40:12] Starting 'build'... [18:40:12] Starting 'sass'... [18:40:12] Starting 'html'... [18:40:12] Starting 'fonts'... [18:40:12] Starting 'scripts'... [18:40:13] Finished 'scripts' after 194 ms [18:40:13] Finished 'fonts' after 227 ms [18:40:13] Finished 'html' after 268 ms [18:40:17] Finished 'sass' after 4.47 s [18:40:42] Finished 'build' after 30 s [18:40:42] Starting 'run:before'... [18:40:42] Finished 'run:before' after 10 μs You have been opted out of telemetry. To change this, run: cordova telemetry on. Running command: /home/mymachine/myproject-ionic/hooks/after_prepare/010_add_platform_class.js /home/mymachine/myproject-ionic add to body class: platform-browser Running command: /home/mymachine/myproject-ionic/hooks/after_prepare/020_remove_sass_from_platforms.js /home/mymachine/myproject-ionic Running command: /home/mymachine/myproject-ionic/platforms/browser/cordova/build Cleaning Browser project Running command: /home/mymachine/myproject-ionic/platforms/browser/cordova/run --nobuild Static file server running @ http://localhost:8000/index.html CTRL + C to shut down Error executing "google-chrome --user-data-dir=/tmp/temp_chrome_user_data_dir_for_cordova http://localhost:8000/index.html": /bin/sh: 1: google-chrome: not found
Notice how it tries to bind to localhost:8000 regardless of whatever I’m passing it.
How can I solve this?