Skip to content

Commit

Permalink
docs: steps to enable different package managers for capacitor (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
oumarbarry authored Jun 29, 2023
1 parent fac9fb1 commit 964db7f
Showing 1 changed file with 33 additions and 5 deletions.
38 changes: 33 additions & 5 deletions docs/content/2.getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,42 @@ The first time you start a Nuxt project with `@nuxtjs/ionic` enabled, a `ionic.c

The good news is that it's installed by default with `@nuxtjs/ionic`, but you will need to enable it and choose what platforms you want to support.

> The Ionic CLI is available via `npx` or can be installed globally with `npm install -g @ionic/cli` or `yarn global add @ionic/cli`.
> The Ionic CLI is available via `npx` or can be installed globally with `npm install -g @ionic/cli` or `yarn global add @ionic/cli` or `pnpm add -g @ionic/cli`.
```bash
npx @ionic/cli integrations enable capacitor # or ionic integrations enable capacitor
npx @ionic/cli capacitor add ios # or ionic capacitor add ios
npx @ionic/cli capacitor add android # or ionic capacitor add android
::code-group

```bash [npx]
npx @ionic/cli integrations enable capacitor
npx @ionic/cli capacitor add ios
npx @ionic/cli capacitor add android
```

```bash [npm]
# ionic config set -g npmClient npm

ionic integrations enable capacitor
ionic capacitor add ios
ionic capacitor add android
```

```bash [yarn]
ionic config set -g npmClient yarn

ionic integrations enable capacitor
ionic capacitor add ios
ionic capacitor add android
```

```bash [pnpm]
ionic config set -g npmClient pnpm

ionic integrations enable capacitor
ionic capacitor add ios
ionic capacitor add android
```

::

### Run on iOS or Android

Once an Android or iOS project is added with Capacitor, you can run your app on an iOS or Android emulator.
Expand Down

0 comments on commit 964db7f

Please sign in to comment.