- version
yangs-mbp:~ yangliu$ ionic -v
_ _
(_) ___ _ __ (_) ___
| |/ _ \| '_ \| |/ __|
| | (_) | | | | | (__
|_|\___/|_| |_|_|\___| CLI PRO 4.1.2
Usage:
$ ionic <command> [<args>] [--help] [--verbose] [--quiet] [--no-interactive] [--no-color] [--confirm] [options]
Global Commands:
config <subcommand> ...... Manage CLI and project config values (subcommands: get, set, unset)
docs ..................... Open the Ionic documentation website
info ..................... Print project, system, and environment information
login .................... Login to Ionic Pro
logout ................... Logout of Ionic Pro
signup ................... Create an account for Ionic Pro
ssh <subcommand> ......... Commands for configuring SSH keys (subcommands: add, delete, generate, list, setup, use)
start .................... Create a new project
Project Commands:
You are not in a project directory.
- update ionic
npm update -g cordova ionic
- 用模板
ionic start myApp tabs
当前目录新建myApp文件夹,用tabs模板
- dependency
如果安装出现问题,则删除node_modules文件夹重新来
npm install
- start server
ionic serve