Skip to content

ionic cordova run browser does not work with chromium #2710

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cprima opened this issue Sep 1, 2017 · 1 comment
Closed

ionic cordova run browser does not work with chromium #2710

cprima opened this issue Sep 1, 2017 · 1 comment

Comments

@cprima
Copy link

cprima commented Sep 1, 2017

Description:

Re-opening #2160 with v3:
Several distributions don't have google-chrome installed but the open source chromium.
ionic-cli does not detect this, but fails hard with:

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

Steps to Reproduce:

Example repo: N/A

  1. ionic start issue blank
  2. ionic cordova platform add browser
  3. ionic cordova run browser

Output:

ionic cordova run browser
[WARN] Detected @ionic/cli-plugin-cordova in your package.json.

       As of CLI 3.8, it is no longer needed. You can uninstall it:

       npm uninstall --save-dev --save-exact @ionic/cli-plugin-cordova

[WARN] Detected @ionic/cli-plugin-ionic-angular in your package.json.

       As of CLI 3.8, it is no longer needed. You can uninstall it:

       npm uninstall --save-dev --save-exact @ionic/cli-plugin-ionic-angular

[INFO] Running app-scripts build: --platform browser --target cordova

[06:43:13]  build dev started ...
[06:43:13]  clean started ...
[06:43:13]  clean finished in 5 ms
[06:43:13]  copy started ...
[06:43:13]  transpile started ...
[06:43:17]  transpile finished in 3.80 s
[06:43:17]  preprocess started ...
[06:43:17]  deeplinks started ...
[06:43:17]  deeplinks finished in 77 ms
[06:43:17]  preprocess finished in 77 ms
[06:43:17]  webpack started ...
[06:43:17]  copy finished in 4.07 s
[06:43:29]  webpack finished in 11.70 s
[06:43:29]  sass started ...
[06:43:30]  sass finished in 1.28 s
[06:43:30]  postprocess started ...
[06:43:30]  removed unused font files
[06:43:30]  postprocess finished in 12 ms
[06:43:30]  lint started ...
[06:43:30]  build dev finished in 16.95 s
> ionic cordova prepare
> cordova prepare
✔ Running command - done!


> cordova run browser
Running command: /home/user/issue/platforms/browser/cordova/build 

Cleaning Browser project
[06:52:11]  lint finished in 3.21 s 
Running command: /home/user/issue/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


[OK] Your app has been deployed.
     Did you know you can live-reload changes from your app with --livereload?

My ionic info:

$ ionic info

cli packages: (/home/user/ionic/test001/perimeterlights_guiapp/node_modules)

@ionic/cli-utils  : 1.9.2
ionic (Ionic CLI) : 3.9.2

global packages:

Cordova CLI : 7.0.1

local packages:

@ionic/app-scripts : 2.1.3
Cordova Platforms  : android 6.2.3 browser 4.1.0
Ionic Framework    : ionic-angular 3.6.0

System:

Node : v6.11.2
npm  : 3.10.10
OS   : Linux 4.10

Other Information:

Thw workaround in #2160 (comment) does work, although the file needs to be in $PATH.

@imhoffd
Copy link
Contributor

imhoffd commented Sep 1, 2017

This is a Cordova issue. You can confirm this with cordova run browser. We don't really support the browser platform. See #2312

@imhoffd imhoffd closed this as completed Sep 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants