**Description:** It would be nice to be able to [configure npm](https://docs.npmjs.com/cli/v7/using-npm/config#ignore-scripts) to ignore pre and postinstall scripts. **Justification:** Pre/postinstall scripts are a potential security problem. **Are you willing to submit a PR?** Yes, see #955
Activity
v-aparnajyothi-y commentedon Feb 13, 2024
Hello @jksolbakken, Thank you for creating this feature request and we will get back to you once we have some feedback :)
janbrasna commentedon Feb 28, 2024
Some example uses as https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#use-private-packages give good reasoning why, but most importantly it also shows how to run the postinstalls via rebuild in a next step without the secrets. I like that approach a lot.