From 0c151fc906351115c627703b9ae752975c35bbdd Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Mon, 18 May 2020 13:38:11 +0200 Subject: [PATCH] docs(workflow): change update instructions to get latest version (#2937) --- site/docs-md/basics/workflow.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/site/docs-md/basics/workflow.md b/site/docs-md/basics/workflow.md index 8c338a4985..c0975824b0 100644 --- a/site/docs-md/basics/workflow.md +++ b/site/docs-md/basics/workflow.md @@ -65,13 +65,15 @@ To check if there are any new updates to Capacitor itself, run `npx cap doctor` To update Capacitor Core and CLI: ```bash -npm update @capacitor/cli -npm update @capacitor/core +npm install @capacitor/cli@latest +npm install @capacitor/core@latest ``` To update any or all of the platforms you are using: ```bash -npm update @capacitor/ios -npm update @capacitor/android -``` \ No newline at end of file +npm install @capacitor/ios@latest +npm install @capacitor/android@latest +``` + +Note: If you don't want to risk to introduce breaking changes, use `npm update @capacitor/package-name` instead of `@latest` as `update` respects semver. \ No newline at end of file