ionic start app 初步来

2019-07-27  本文已影响0人  liuyangcc
  1. 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.
  1. update ionic
npm update -g cordova ionic
  1. 用模板
ionic start myApp tabs

当前目录新建myApp文件夹,用tabs模板

  1. dependency
    如果安装出现问题,则删除node_modules文件夹重新来
npm install
  1. start server
ionic serve
上一篇 下一篇

猜你喜欢

热点阅读