You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to run a script before installing any other modules. But currently npm preinstall script runs only before we do npm install, and there is no way to run a script before installing a module npm install <module>.
I tried with yarn and it runs presintall script before I install any other modules. But since my co-workers use different npm client, I cannot fully rely on yarn's behavior.
Can we have preinstall script runs before installing any other modules, not only before npm install? It will make npm script even more flexible.
When
You want to run a script before installing any other modules.
Where
Current working project.
How
Current Behavior
preinstall script only runs when npm install for npm, not with npm install <module>.
Yarn always run this preinstall script.
Expected Behavior
Always run this preinstall script before installing any other modules.
npm v6 is no longer in active development; We will continue to push security releases to v6 at our team's discretion as-per our Support Policy.
If your bug is preproducible on v7, please re-file this issue using our new issue template.
If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo
What / Why
I need to run a script before installing any other modules. But currently npm
preinstall
script runs only before we donpm install
, and there is no way to run a script before installing a modulenpm install <module>
.I tried with
yarn
and it runspresintall
script before I install any other modules. But since my co-workers use different npm client, I cannot fully rely on yarn's behavior.Can we have
preinstall
script runs before installing any other modules, not only beforenpm install
? It will make npm script even more flexible.When
You want to run a script before installing any other modules.
Where
Current working project.
How
Current Behavior
preinstall
script only runs whennpm install
for npm, not withnpm install <module>
.Yarn
always run thispreinstall
script.Expected Behavior
Always run this
preinstall
script before installing any other modules.Who
@npm/cli
References
The text was updated successfully, but these errors were encountered: