欧洲杯官网投注

Ionic Docs Docs

Native

Search docs/
Search docs/
Ionic Docs Docs
  • Structure
  • Responsive Grid
  • Global StylesheetsCSS Utilities
  • Basics
  • Platform Styles
  • CSS VariablesColorsThemesDark ModeAdvancedColor Generator
  • Overview
  • Build Your First App
    LifecycleNavigation/RoutingConfigPlatformTestingStoragePerformanceProgressive Web Apps
  • Overview
  • Quickstart
  • Build Your First App
    LifecycleNavigation/RoutingConfigPlatform UtilsProgressive Web AppsTesting
  • Overview
  • Build Your First App
  • LifecycleNavigation/Routing
  • Animations
  • Gestures
  • iOS App Store
  • Android Play StoreProgressive Web App (PWA)Electron Desktop App
  • Security
  • Debugging
  • Build ErrorsRuntime ErrorsNative ErrorsCORS Errors
  • Fundamentals
  • Cross PlatformWeb ViewWhat are PWAs?
  • How to Contribute
  • Code of Conduct
  • Glossary
  • VersioningRelease NotesGitHub Changelog
  • Support Policy
  • Browser Support
  • Migration
  • Books
  • CoursesGuidesPostsToolsVideos

    Installing Ionic

    Contents

    Ionic apps are created and developed primarily through the Ioniccommand-line utility. The Ionic CLI is the preferred method of installation, as it offers a wide range of dev tools and help options along the way. It is also the main tool through which to run the app and connect it to other services, such as Ionic Appflow.

    Install the Ionic CLI

    Before proceeding, make sure your computer has Node.js installed. Seethese instructions欧洲杯官网投注 to set up an environment for Ionic.

    Install the Ionic CLI with npm:

    $ npm install -g @ionic/cli

    欧洲杯官网投注If there was a previous installation of the Ionic CLI, it will need to be uninstalled due to a change in package name.

    $ npm uninstall -g ionic$ npm install -g @ionic/cli

    The -g option meansinstall globally. When packages are installed globally,EACCES permission errors can occur.Consider setting up npm to operate globally without elevated permissions. SeeResolving Permission Errors for more information.

    Start an App

    Create an Ionic app using one of the pre-made app templates, or a blank one to start fresh. The three most common starters are theblank starter, tabs starter, andsidemenu starter. Get started with theionic start command:

    $ ionic start myApp tabs

    start app thumbnails

    To learn more about starting Ionic apps, see theStarting Guide.

    Run the App

    The majority of Ionic app development can be spent right in the browser using theionic serve command:

    $ cd myApp$ ionic serve

    There are a number of other ways to run an app, it's recommended to start with this workflow. To develop and test apps on devices and emulators, see theRunning an App Guide.

    Previous
    Environment Setup
    Next
    Packages & CDN