Ionic CLI 启动:starterkit v3?
Ionic CLI start : starterkit v3?
使用命令 ionic 启动 myapp 选项卡。我们从版本 2 中检索 starterkit。但我想启动一个应用程序 Ionic v3。 Ionic CLI 不是最新的?与其他命令一样:ionic generate ??
此 CLI 运行良好。
ionic start myapp tabs
您可以在 package.json
文件中看到 below.On "ionic-angular": "3.6.0",
表示 Ionic 3
应用 Angular 4+
。没问题。
{
"name": "MediaApp",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "4.1.3",
"@angular/compiler": "4.1.3",
"@angular/compiler-cli": "4.1.3",
"@angular/core": "4.1.3",
"@angular/forms": "4.1.3",
"@angular/http": "4.1.3",
"@angular/platform-browser": "4.1.3",
"@angular/platform-browser-dynamic": "4.1.3",
"@ionic-native/core": "3.12.1",
"@ionic-native/splash-screen": "3.12.1",
"@ionic-native/status-bar": "3.12.1",
"@ionic/storage": "2.0.1",
"ionic-angular": "3.6.0",
"ionicons": "3.0.0",
"rxjs": "5.4.0",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.12"
},
"devDependencies": {
"@ionic/app-scripts": "2.1.3",
"typescript": "2.3.4"
},
"description": "An Ionic project"
}
如果你想在命令行输入 ionic 版本 3
npm update -g ionic
然后会更新到最新的ionic版本,也就是ionic 3
然后转到你有代码的源代码文件,在 windows 中按 shift 键右键单击然后你可以转到那里的命令提示符,如果你使用 git bash 命令行你只能通过 ricght clicking.in 命令行类型
获得
ionic serve
然后按回车键。
这东西对我有用
使用命令 ionic 启动 myapp 选项卡。我们从版本 2 中检索 starterkit。但我想启动一个应用程序 Ionic v3。 Ionic CLI 不是最新的?与其他命令一样:ionic generate ??
此 CLI 运行良好。
ionic start myapp tabs
您可以在 package.json
文件中看到 below.On "ionic-angular": "3.6.0",
表示 Ionic 3
应用 Angular 4+
。没问题。
{
"name": "MediaApp",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "4.1.3",
"@angular/compiler": "4.1.3",
"@angular/compiler-cli": "4.1.3",
"@angular/core": "4.1.3",
"@angular/forms": "4.1.3",
"@angular/http": "4.1.3",
"@angular/platform-browser": "4.1.3",
"@angular/platform-browser-dynamic": "4.1.3",
"@ionic-native/core": "3.12.1",
"@ionic-native/splash-screen": "3.12.1",
"@ionic-native/status-bar": "3.12.1",
"@ionic/storage": "2.0.1",
"ionic-angular": "3.6.0",
"ionicons": "3.0.0",
"rxjs": "5.4.0",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.12"
},
"devDependencies": {
"@ionic/app-scripts": "2.1.3",
"typescript": "2.3.4"
},
"description": "An Ionic project"
}
如果你想在命令行输入 ionic 版本 3
npm update -g ionic
然后会更新到最新的ionic版本,也就是ionic 3 然后转到你有代码的源代码文件,在 windows 中按 shift 键右键单击然后你可以转到那里的命令提示符,如果你使用 git bash 命令行你只能通过 ricght clicking.in 命令行类型
获得ionic serve
然后按回车键。 这东西对我有用