vuepress: No matching version found for vuepress-vite@2.0.0-beta.50-pre.1.

  • I confirm that this is an issue rather than a question.

Bug report

While installing vuepress on vercel, it tries to find 2.0.0-beta.50-pre.1 which doesn’t exist as far as I understood.

Steps to reproduce

Download the latest version of vuepress and try to deploy it somewhere

What is expected?

Simply install everything and work correctly

What is actually happening?

Screenshot 2022-11-04 at 11 15 46

Other relevant information

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 1
  • Comments: 15

Commits related to this issue

Most upvoted comments

Just leaving this here, since it cost me some time to realize:

If you are getting this error because you tried to run npm up on your project, make sure to fix the version of vuepress in your package.json first.

"dependencies": { "vuepress": "2.0.0-beta.61" }

instead of ^2.0.0-beta.61.

The npm semver algorythm seems to get confused with beta tags and tries to upgrade to an older package, which is why you get this error then.

✌️

By running the command “yarn add -D vuepress@next”, the issue can be resolved. You can see that the devDependencies have added a line “@vuepress/bundler-vite”: “^2.0.0-beta.51”.

I had the same problem, I was using version 2.0.0-beta.51.

Changing "vuepress":"^2.0.0-beta.51" to "vuepress": "2.0.0-beta.51" solved it

Fix for me:

replace

"devDependencies": {
    "@vuepress/plugin-docsearch": "^2.0.0-beta.50",
    "@vuepress/plugin-theme-data": "^2.0.0-beta.50",
    "vuepress": "^2.0.0-beta.50"
},

with

"devDependencies": {
    "@vuepress/plugin-docsearch": "2.0.0-beta.54",
    "@vuepress/plugin-theme-data": "2.0.0-beta.54",
    "vuepress": "2.0.0-beta.54"
},