From 4a7a0d14cb625dbd130b6439142077d4f5f0905f Mon Sep 17 00:00:00 2001 From: wambuamtoto-dot Date: Sat, 6 Dec 2025 00:09:33 +0300 Subject: [PATCH] Update installation instructions for Capacitor yes --- .../version-v7/main/getting-started/installation.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/versioned_docs/version-v7/main/getting-started/installation.md b/versioned_docs/version-v7/main/getting-started/installation.md index f51ae7ea5..8f983e7cf 100644 --- a/versioned_docs/version-v7/main/getting-started/installation.md +++ b/versioned_docs/version-v7/main/getting-started/installation.md @@ -36,9 +36,7 @@ Your `index.html` file must have a `` tag in order to properly inject Capa In the root of your app, install Capacitor's main npm dependencies: the core JavaScript runtime and the command line interface (CLI). ```bash -npm i @capacitor/core -npm i -D @capacitor/cli -``` +npm install @capacitor/core @capacitor/cli ### Initialize your Capacitor config @@ -59,8 +57,8 @@ You can customize the folder used by Capacitor by modifying the `webDir` variabl After the Capacitor core runtime is installed, you can install the Android and iOS platforms. ```bash -npm i @capacitor/android @capacitor/ios -``` +npx cap add android +npx cap add ios Once the platforms have been added to your `package.json`, you can run the following commands to create your Android and iOS projects for your native application.