vuejs / vue-jest

Jest Vue transformer
MIT License
748 stars 156 forks source link

No matching version found for @vue/vue3-jest@27 #406

Closed awulkan closed 3 years ago

awulkan commented 3 years ago

Hey, I'm having trouble installing @vue/vue3-jest@27 in a Vue 3 project. Does anyone know what might be wrong? Is the version not published yet? I'm just following what the README file told me to install.

> npm install --save-dev @vue/vue3-jest@27
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @vue/vue3-jest@27.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
afontcu commented 3 years ago

Hi! 👋 Yeah you're right, the current command on the README won't work because the released versions of @27 are beta, and npm needs to be told to install beta versions or avoid specifying a version at all.

Try npm install --save-dev @vue/vue3-jest@^27.0.0-alpha and see if it works.

Fancy to open up a PR? 🙏 😄

awulkan commented 3 years ago

Simply typing npm install --save-dev @vue/vue3-jest seems to have worked. It installed version ^27.0.0-alpha.3. Should I change it to that if I open a PR?

afontcu commented 3 years ago

yeah, I guess that would work, too. thanks!