Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
uwussimo opened this issue Nov 4, 2022 · 15 comments
Open
1 task done

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

uwussimo opened this issue Nov 4, 2022 · 15 comments

Comments

@uwussimo
Copy link

uwussimo commented Nov 4, 2022

  • 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

  • Output of npx vuepress info in 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

@uwussimo uwussimo changed the title npm ERR! notarget No matching version found for vuepress-vite@2.0.0-beta.50-pre.1. No matching version found for vuepress-vite@2.0.0-beta.50-pre.1. Nov 4, 2022
@SaadBazaz
Copy link

Definitely an issue, still exists.

@andrey-helldar
Copy link

Hm...

image

@andrey-helldar
Copy link

andrey-helldar commented Dec 9, 2022

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"
},

@bkbonner
Copy link

I still see this error.

@ifengshai
Copy link

I have the same problem

1 similar comment
@yixiu1043
Copy link

I have the same problem

@mschiavone
Copy link

I upgraded to 2.0.0-beta.61 versions and am still getting this error. Is there a workaround?

@Flechman
Copy link

Yep, same issue here

@aedart
Copy link

aedart commented Mar 19, 2023

Also experiencing this issue for 2.0.0-beta.61. Any status on when this will be fixed?... Or at least a work-around?

@wildone
Copy link

wildone commented Mar 20, 2023

+1, moved to use pnpm

@Phundrak
Copy link

Also experiencing this issue for 2.0.0-beta.61. Any status on when this will be fixed?... Or at least a work-around?

On my side, I ran yarn and selected a version for vuepress-vite interactively. I then modified the lockfile like so:

- vuepress-vite@2.0.0-beta.50-pre.1:
+ vuepress-vite@2.0.0-beta.61:
    version "2.0.0-beta.61"
    resolved "https://registry.yarnpkg.com/vuepress-vite/-/vuepress-vite-2.0.0-beta.61.tgz#04058551e6be014e9f2dee14c5d8043b158e032d"
    integrity sha512-4mcR8XSY5b36CYkPqF80WvoeGAEjTw6Cr9bMPHrPVSjG4qqyfVpdSdyRtXD+/5aLJB7r/L60J7PI1pKTci1+3w==
    dependencies:
      "@vuepress/bundler-vite" "2.0.0-beta.61"
      "@vuepress/cli" "2.0.0-beta.61"
      "@vuepress/core" "2.0.0-beta.61"
      "@vuepress/theme-default" "2.0.0-beta.61"
  
  vuepress@^2.0.0-beta.61:
    version "2.0.0-beta.50-pre.1"
    resolved "https://registry.yarnpkg.com/vuepress/-/vuepress-2.0.0-beta.50-pre.1.tgz#26eec90444bb37590f29d10dd5923e75c476189f"
    integrity sha512-4Finc3GDscIqgRFAZFwa4SUm8tIFSVQIxnPIpQPW3kaM37rKylvUDkLrs2lMvoDPTAAE+Kf+v34tAFX+ZMGKUg==
    dependencies:
-     vuepress-vite "2.0.0-beta.50-pre.1"
+     vuepress-vite "2.0.0-beta.61"

Adding the yarn.lock file to the repo then enables me to reinstall everything non-interactively with a simple yarn command, which should modify the rest of the lockfile correctly.

I’m not sure how this could be done with npm, however.

@ThomasHang
Copy link

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".

@j-o-sh
Copy link

j-o-sh commented Mar 24, 2023

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.

✌️

@ChaominRuan
Copy link

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

@Tofandel
Copy link

Tofandel commented Jul 10, 2023

The issue is if you are using a range for the beta version, there is an invalid 2.0.0-beta.50-pre.1. version that has been published, because semantic versionning considers it a higher version than say 2.0.0-beta.64

It's a tricky situation to fix this now unless the beta is somehow bumped to 2.0.1-beta

To avoid it for now, pin the vuepress dependency to your desired version (eg: "vuepress": "2.0.0-beta.64")

Piotrekol added a commit to Piotrekol/StreamCompanion that referenced this issue Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests