I am trying to make a test for npm packages for my project such that every time I try to install a module i.e run npm install <module>
a script must be run before that module is installed. The preinstall script only works with npm install
and not with npm install <module>
.
eg :- If run npm install request
. It should run a script which shows me all the dependencies of the request module before installing the module. Thanks in advance.