From 964db7f1d996ae8b4fa8cb4df197fdfbdf1cf628 Mon Sep 17 00:00:00 2001 From: Oumar Barry Date: Thu, 29 Jun 2023 08:04:15 +0000 Subject: [PATCH] docs: steps to enable different package managers for capacitor (#399) --- docs/content/2.getting-started.md | 38 +++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/docs/content/2.getting-started.md b/docs/content/2.getting-started.md index f1148638..8e679914 100644 --- a/docs/content/2.getting-started.md +++ b/docs/content/2.getting-started.md @@ -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.