Skip to content

⚠️ATTENTION: Using version range like ^ or ~ for packages in this repo will fail. #1195

@Mister-Hope

Description

@Mister-Hope

Description

If you use ^2.0.0-beta.xx for any packages in this repo, you may get an installation failure, or you may get your app broke when upgrading to latest next version.

This is because we published 2 test versions 2.0.0-beta.50-pre.0, 2.0.0-beta.50-pre.1, while 50-pre.x is higher than any number xx.

Solution

The easiest way to solve this is to upgrade vuepress with vp-update.

For:

npx vp-update

yarn dlx vp-update

pnpm dlx vp-update

Manual solution

You can solve this issue by specifying exact version in package.json. e.g.:

{
  "dependencies": {
    "@vuepress/client": "2.0.0-beta.62",
    "vue": "^3.3.4",
    "vuepress": "2.0.0-beta.62"
  }

Note that all the ^ or ~ marker shall be changed for packages in this repo, but you can keep others as is.

{
  "dependencies": {
-    "@vuepress/client": "~2.0.0-beta.62",
-    "@vuepress/client": "^2.0.0-beta.62",
+    "@vuepress/client": "2.0.0-beta.62",
    "vue": "^3.3.4",
-    "vuepress": "~2.0.0-beta.62",
-    "vuepress": "^2.0.0-beta.62",
+    "vuepress": "2.0.0-beta.62"
  }

Also you can use next tag (But we do not recommend this because we may introduce breaking changes in future versions)

{
  "dependencies": {
    "@vuepress/client": "next",
    "vue": "^3.3.4",
    "vuepress": "next"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions