Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] make preinstall script runs before installing any other modules #481

Closed
aprilandjan opened this issue Nov 14, 2019 · 2 comments
Closed
Labels
Enhancement new feature or improvement

Comments

@aprilandjan
Copy link

What / Why

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.

Who

@npm/cli

References

@cryptiklemur
Copy link

Would love to see typesync integrate with this feature

@darcyclarke darcyclarke added the Enhancement new feature or improvement label Oct 30, 2020
@darcyclarke
Copy link
Contributor

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

Closing: This is an automated message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement new feature or improvement
Projects
None yet
Development

No branches or pull requests

3 participants