2017-01-29 15 views
0

私は最近、イオン実験室で試してみることを試みています。ドキュメントからは、コマンドionic serve --labと同じくらい簡単です。しかし、これは通常のionic serveの表示はアンドロイドとiphoneの表示ではありません。私はどんな誤りも見ない。ionic serve --labが異なるプラットフォームビューを表示していない

$ ionic serve -l 

> [email protected] ionic:serve /home/raj/ionic/bookemon 
> ionic-app-scripts serve "--v2" "--lab" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729" 

[12:10:35] ionic-app-scripts 1.0.0 
[12:10:35] watch started ... 
[12:10:35] build dev started ... 
[12:10:35] clean started ... 
[12:10:35] clean finished in 6 ms 
[12:10:35] copy started ... 
[12:10:35] transpile started ... 
[12:10:39] transpile finished in 3.58 s 
[12:10:39] webpack started ... 
[12:10:39] copy finished in 3.74 s 
[12:10:46] webpack finished in 6.89 s 
[12:10:46] sass started ... 
[12:10:47] sass finished in 719 ms 
[12:10:47] build dev finished in 11.23 s 
[12:10:47] watch ready in 11.31 s 
[12:10:47] dev server running: http://localhost:8100/ 

これは私のイオン性情報である

Your system information: 

Cordova CLI: 6.4.0 
Ionic Framework Version: 2.0.0-rc.6 
Ionic CLI Version: 2.2.1 
Ionic App Lib Version: 2.2.0 
Ionic App Scripts Version: 1.0.0 
ios-deploy version: Not installed 
ios-sim version: Not installed 
OS: Linux 4.4 
Node Version: v7.2.1 
Xcode version: Not installed 

ここで起こっていただきましたわかりません。私はionicnpm_modulesを再インストールしようとしましたが、動作しませんでした。どんな助け?前もって感謝します。上記にpackage.json変更スクリプトで

答えて

5

あなたがちょうどhttp://localhost:8101http://localhost:8101/ionic-labを開いていないことを確認していますか?

  1. 実行ionic serve --lab又はionic serve -l
  2. ジャンプhttp://localhost:8101/ionic-lab

  • localhost:8101注は、通常のビューをロードし、
  • localhost:8101/ionic-labは、種々のオプションを持つビューをロードしますプラットフォーム
1
"scripts": { 
    "build": "ionic-app-scripts build", 
    "watch": "ionic-app-scripts watch", 
    "serve:before": "watch", 
    "emulate:before": "watch", 
    "deploy:before": "build", 
    "build:before": "build", 
    "run:before": "watch" 
    } 

と私はionic serve -lが イオンアプリ-スクリプトを使用したイオン2以降に動作しないと思いますionic serve -l

+0

私はそれを持っています。しかし、まだ同じです。 – raj

0

を実行します。

ですが、それらはイオン検査アプリケーションを使用しており、ライブテスト用です。

ここでチェックhttps://play.google.com/store/apps/details?id=com.ionic.viewapp&hl=en

+0

それを確認するためのリンクがありますか? – raj

+0

まだ実際にはありません。 これをチェックしてみてください:node_modules - > @ionic - > app-scripts - > lab - > open index.html – david

関連する問題