vueuse / vue-demi

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

`postinstall` script doesn't play well with `pnpm` on Windows #248

Open shellscape opened 8 months ago

shellscape commented 8 months ago

Using the hoisted linker with pnpm results in a failure to run the postinstall script for this package on Windows. This is a very common configuration for working in monorepos with pnpm. Please see this workflow for proof: https://github.com/shellscape/jsx-email/actions/runs/6684802882/job/18162523469#step:10:32

I'm aware that this is likely a pnpm issue at its core, but perhaps this package can be improved to work around that limitation by using a fully resolved path to the file or some such.

shellscape commented 5 months ago

@patak-dev any chance we could get some eyeballs on this one 🙏 ?

patak-dev commented 5 months ago

I'm not a contributor to this project

shellscape commented 5 months ago

But you are an all-star in the community! Any chance you could ping the right folks? They don't seem to be watching the repo these days.

antfu commented 5 months ago

Could you share a minimal reproduction with error messages? vue-demi shouldn't fail

shellscape commented 5 months ago

I'm afraid I'll need some specifics on what you'd like to see beyond what's available in the workflow output I linked to. The repo has no templates or guidance.

You might also find the information on this issue useful https://github.com/pnpm/pnpm/issues/7562

richardsmogodb commented 3 months ago

@shellscape you can try to set dedupe-peer-dependents=false in your .npmrc

richardsmogodb commented 3 months ago

@shellscape you can try to set dedupe-peer-dependents=false in your .npmrc

shellscape commented 3 months ago

That's a hack at best and produces other issues with dependency installs.