vue-demi icon indicating copy to clipboard operation
vue-demi copied to clipboard

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

Open shellscape opened this issue 2 years ago • 8 comments

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 avatar Oct 29 '23 17:10 shellscape

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

shellscape avatar Jan 23 '24 20:01 shellscape

I'm not a contributor to this project

patak-dev avatar Jan 23 '24 21:01 patak-dev

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.

shellscape avatar Jan 23 '24 21:01 shellscape

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

antfu avatar Jan 24 '24 12:01 antfu

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

shellscape avatar Jan 24 '24 14:01 shellscape

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

richardsmogodb avatar Apr 01 '24 09:04 richardsmogodb

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

richardsmogodb avatar Apr 01 '24 09:04 richardsmogodb

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

shellscape avatar Apr 01 '24 11:04 shellscape