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?

Other relevant information
-
Output of
npx vuepress infoin my VuePress project:System: OS: macOS 13.0 CPU: (8) arm64 Apple M1 Memory: 86.95 MB / 8.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.11.0 - /opt/homebrew/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 8.19.2 - /opt/homebrew/bin/npm Utilities: Git: 2.37.1 - /usr/bin/git Browsers: Chrome: Not Found Edge: Not Found Firefox: 106.0 Safari: 16.1 npmPackages: @vuepress/bundler-vite: 2.0.0-beta.53 @vuepress/bundler-webpack: Not Found @vuepress/cli: 2.0.0-beta.53 @vuepress/client: 2.0.0-beta.53 => 2.0.0-beta.53 (2.0.0-beta.50-pre.1) @vuepress/core: 2.0.0-beta.53 (2.0.0-beta.50-pre.1) @vuepress/markdown: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-active-header-links: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-back-to-top: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-container: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-docsearch: ^2.0.0-beta.53 => 2.0.0-beta.50-pre.1 @vuepress/plugin-external-link-icon: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-git: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-google-analytics: Not Found @vuepress/plugin-medium-zoom: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-nprogress: ^2.0.0-beta.53 => 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-palette: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-prismjs: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-pwa: ^2.0.0-beta.53 => 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-pwa-popup: 2.0.0-beta.53 => 2.0.0-beta.53 @vuepress/plugin-register-components: Not Found @vuepress/plugin-search: ^2.0.0-beta.53 => 2.0.0-beta.50-pre.1 @vuepress/plugin-shiki: Not Found @vuepress/plugin-theme-data: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/plugin-toc: ^2.0.0-beta.53 => 2.0.0-beta.50-pre.1 @vuepress/shared: 2.0.0-beta.53 (2.0.0-beta.50-pre.1) @vuepress/theme-default: ^2.0.0-beta.53 => 2.0.0-beta.50-pre.1 (2.0.0-beta.53) @vuepress/utils: 2.0.0-beta.50-pre.1 (2.0.0-beta.53) vue: 3.2.41 vue-loader: Not Found vue-router: 4.1.6 vuepress: ^2.0.0-beta.53 => 2.0.0-beta.50-pre.1 vuepress-vite: 2.0.0-beta.53 => 2.0.0-beta.53 vuepress-webpack: Not Found
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 1
- Comments: 15
Commits related to this issue
- Docs: Fix docs build https://github.com/vuejs/vuepress/issues/3096 — committed to Piotrekol/StreamCompanion by Piotrekol 9 months ago
Just leaving this here, since it cost me some time to realize:
If you are getting this error because you tried to run
npm upon your project, make sure to fix the version of vuepress in your package.json first.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 itFix for me:
replace
with