Closed Venryx closed 4 years ago
npm install
doesn't install the package's dev deps. Furthermore, prepack
should only run before builing a tarball, so not as part of the install (https://docs.npmjs.com/misc/scripts).
So it's weird that it tries to run prepack without the dev dependencies.
I'm not familiar with prepack
, but if this is an npm script you expect dependent modules to run, or as part of running npm install
, then you need to add shx
to the regular dependencies rather than dev-dependencies.
I don't think there's anything for shx to do here, so I'm going to close this out. Please ping this if I've misunderstood.
I added
shx
as a dev-dependency for my fork of an npm module here: https://github.com/Venryx/mst-decoratorsHowever, even with it in the dev-dependencies, when I run
npm install Venryx/mst-decorators
in another project, I get this error:The problem seems to be that the dev-dependencies are only installed after running
npm install
in themst-decorators
folder -- not merely when mymst-decorators
fork is being installed through the npm "install from github repo" function.Any solution to this?