-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[BUG] lifecycle scripts are run for 'npm install --package-lock-only' #2787
Comments
Lifecycle scripts might be written to edit package.json, prepopulate things in node_modules, or edit the lockfile after the fact, all of which would apply to |
|
A workaround is And |
I was doing a rebase today and that reminded me: Rebases where there's a merge conflict in |
Just a quick update/reference here, we should revert back to this behaviour as this seems to be an unintended change from v6 to v7 (change should be in |
Actions
|
Closed accidentally? (I couldn't find a commit/PR that updates the behavior relating to this issue.) |
By the way: I am surprised to find npm@6 runs the Results of the
I personally don't think that any of the lifecycle scripts should run with |
Can this issue please be re-opened? I think it was closed accidentally. |
Current Behavior:
For example,
prepare
andpostinstall
scripts are run after doingnpm install --package-lock-only
.Expected Behavior:
This is supposed to simply update
package-lock.json
, no more no less. (Like in npm v6, I expect lifecycle scripts not to run with--package-lock-only
.)Steps To Reproduce:
package.json
that has lifecycle scripts defined...npm install --package-lock-only
Environment:
ex.
The text was updated successfully, but these errors were encountered: