]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
docs: use `@latest` to avoid npx cache issues
authorHaoqun Jiang <haoqunjiang@gmail.com>
Sat, 29 Jul 2023 09:10:30 +0000 (17:10 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Sat, 29 Jul 2023 09:10:30 +0000 (17:10 +0800)
See explanation at https://github.com/vuejs/create-vue/issues/157#issuecomment-1655936446
Fixes #157

README.md
media/screenshot-cli.png

index 120d96a6a13aafef773d728add857b1c17b0e006..577c3ed1017d03f2b2cec700d40db75c30fa4d00 100644 (file)
--- 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
 
index d2c963d6af2467c491ce82320310df2d5fb0f11e..e81d6cb18745de88f82f47708f0d1eb78e8202b0 100644 (file)
Binary files a/media/screenshot-cli.png and b/media/screenshot-cli.png differ