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

[QUESTION](arborist) What happened to global lifecycle hooks? #4282

Closed
augustobmoura opened this issue Apr 9, 2021 · 1 comment
Closed
Labels
ws:arborist Related to the arborist workspace

Comments

@augustobmoura
Copy link
Contributor

What / Why

Before npm@7 we had global lifecylcle hooks, postinstall and postuninstall script files in the directory /node_modules/.hooks were run for every package being installed or removed, but since npm@7 this scripts don't run at all. This worked for both local node_modules and global $NPM_PREFIX/.npm/lib/node_modules

Is that a bug? Or global hooks were removed once and for all? This was a feature heavily used in https://github.com/asdf-vm/asdf-nodejs and we were actually thinking about a new hook suggestion that would be more useful for our use case

@fritzy fritzy transferred this issue from npm/arborist Jan 20, 2022
@fritzy fritzy added Needs Triage needs review for next steps ws:arborist Related to the arborist workspace labels Jan 20, 2022
@fritzy fritzy changed the title [QUESTION] What happened to global lifecycle hooks? [QUESTION](arborist) What happened to global lifecycle hooks? Jan 20, 2022
@ruyadorno ruyadorno removed the Needs Triage needs review for next steps label Mar 1, 2022
@ruyadorno
Copy link
Contributor

There's discussion being tracked in our RFC repo that is related to this PR: #4260, you can see the minutes for some of the meetings here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ws:arborist Related to the arborist workspace
Projects
None yet
Development

No branches or pull requests

3 participants