From: Haoqun Jiang Date: Sat, 29 Jul 2023 09:10:30 +0000 (+0800) Subject: docs: use `@latest` to avoid npx cache issues X-Git-Tag: v3.7.3~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bba10e2ff2dba6acfc130752b74addc0f99b1e6;p=thirdparty%2Fvuejs%2Fcreate-vue.git docs: use `@latest` to avoid npx cache issues See explanation at https://github.com/vuejs/create-vue/issues/157#issuecomment-1655936446 Fixes #157 --- diff --git a/README.md b/README.md index 120d96a6..577c3ed1 100644 --- a/README.md +++ b/README.md @@ -9,16 +9,16 @@ The recommended way to start a Vite-powered Vue project ## Usage ```sh -npm create vue@3 +npm create vue@latest ``` Or, if you need to support IE11, you can create a Vue 2 project with: ```sh -npm create vue@2 +npm create vue@legacy ``` -Note that the version number (`@3` or `@2`) MUST NOT be omitted, otherwise `npm` may resolve to a cached and outdated version of the package. +Note that the tag name (`@latest` or `@legacy`) MUST NOT be omitted, otherwise `npm` may resolve to a cached and outdated version of the package. ## Difference from Vue CLI diff --git a/media/screenshot-cli.png b/media/screenshot-cli.png index d2c963d6..e81d6cb1 100644 Binary files a/media/screenshot-cli.png and b/media/screenshot-cli.png differ