npm 8.19 (node 18) not running prepare or postinstall scripts from packages

214 views Asked by At

I have a custom package with a postinstall script, this script used to be run automatically when using npm install in the applications that required the package. We recently updated this package from using Angular 7 to Angular 15. In doing this we update our system from requiring Node 10 to Node 18, 18.12.1 with npm 8.19 to be precise.

When using npm 8.19 now the script doesn't run anymore when the package is installed and I have no idea why (I've tried checking with --foreground-scripts but no extra output was given), I even tried changing from postinstall to prepare but it didn't help

I have already tried what suggested here:

npm postinstall script with published package

NPM not running postinstall

But it didn't help either

0

There are 0 answers