vueuse / vue-demi

🎩 Creates Universal Library for Vue 2 & 3
MIT License
2.98k stars 155 forks source link

vue-demi-fix is missing #246

Closed aghArdeshir closed 1 year ago

aghArdeshir commented 1 year ago

Hi. In the README.md, there is a section that says if postinstall is missed, you can run npx vue-demi-fix

but I can't, and it fails: image

antfu commented 1 year ago

You need to install vue-demi first.

aghArdeshir commented 1 year ago

Oops, thanks :heart:

thedamon commented 1 year ago

Interesting. Just ran into this. I think it's confusing as typically npx will run fine if you don't have the package installed.

aghArdeshir commented 1 year ago

And I also have another question, can't someone suspicious just go ahead and publish a package to npm called vue-demi-fix? https://www.npmjs.com/package/vue-demi-fix

I suggest you (the vueuse team) create and publish a package called vue-demi-fix which all it does is informing people about the usage.

That's exactly what browserslist does, if instead of

npx browserslist@latest --update-db

you do (notice the typo)

npx browserlist@latest --update-db

all you see is a package that says "you made a typo". And that package (browserlist) is also published by the tool author itself.

aghArdeshir commented 1 year ago

https://github.com/vueuse/vue-demi/issues/246#issuecomment-1740419980

image