- 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
當(dāng)前目錄新建myApp文件夾,用tabs模板
- dependency
如果安裝出現(xiàn)問題,則刪除node_modules文件夾重新來(lái)
npm install
- start server
ionic serve