Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot run script before install a new dependency into my project #18857
I'm opening this issue because:
What's going wrong?
I want to save time of my developers. We use nsp to check security problems for node modules, and we want to check it before it installed on local envrionment. For example I want to stop the installation procedure, and show error message to developer who want install the older version of minimatch because it vulnerable.
How can the CLI team reproduce the problem?
We try to use install and preinstall scripts, but it ineffective when we use a new module
The expected usage is a new script - for example preadddependency where we can check the new module security problems with nsp, and it can blocking the installation procedure (package.json doesn't change)