私はちょうど新しいプロジェクトionic start blank --v2
を作成していましたが、私はionic serve
でした。エラー:ENOENT:そのようなファイルやディレクトリは、ionic2で開きません。
Error: ENOENT: no such file or directory, open '/home/panini/myApp/www/index.html'.
の下に、これはcmd
Running live reload server: http://localhost:35729
Watching: www/**/*, !www/lib/**/*, !www/**/*.map
√ Running dev server: http://localhost:8100
Ionic server commands, enter:
restart or r to restart the client app from the root
goto or g and a url to have the app navigate to the given url
consolelogs or c to enable/disable console log output
serverlogs or s to enable/disable server log output
quit or q to shutdown the server and exit
ionic $
でionic serve
のための私の出力であるように私の閲覧に私は私のイオン性のいずれかの一気ファイルの時計を見つけるいけないエラーを取得していますここに私のパッケージがある
を果たします.jsonファイル
{
"name": "ionic-hello-world",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "2.1.1",
"@angular/compiler": "2.1.1",
"@angular/compiler-cli": "2.1.1",
"@angular/core": "2.1.1",
"@angular/forms": "2.1.1",
"@angular/http": "2.1.1",
"@angular/platform-browser": "2.1.1",
"@angular/platform-browser-dynamic": "2.1.1",
"@angular/platform-server": "2.1.1",
"@ionic/storage": "1.1.6",
"ionic-angular": "2.0.0-rc.2",
"ionic-native": "2.2.3",
"ionicons": "3.0.0",
"rxjs": "5.0.0-beta.12",
"zone.js": "0.6.21"
},
"devDependencies": {
"@ionic/app-scripts": "0.0.43",
"typescript": "2.0.6"
},
"description": "myApp: An Ionic project",
"cordovaPlugins": [
"cordova-plugin-device",
"cordova-plugin-console",
"cordova-plugin-whitelist",
"cordova-plugin-splashscreen",
"cordova-plugin-statusbar",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": []
}
ここは私のイオン情報の結果です
Your system information:
Cordova CLI: 6.3.0
Ionic Framework Version: 2.0.0-rc.2
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS
Node Version: v6.0.0
注
私はそれが働いているオブジェクトの下にこれを更新するときにpackage.jsonでこのhttps://github.com/driftyco/ionic-cli/issues/1420議論私のスクリプトオブジェクトが一致していないよると
"scripts": {
"build": "ionic-app-scripts build",
"watch": "ionic-app-scripts watch",
"serve:before": "watch",
"emulate:before": "build",
"deploy:before": "build",
"build:before": "build",
"run:before": "build"
}
質問:
On giving ionic start myApp blank --v2 i am not able to generate package.json correctly.
http://blog.ionic.io/improvements-to-ionic-build-process/ according to this blog i tried still no better output.