fix(cli): warn and suggest --run-scripts for global packages - #2810
liangmiQwQ wants to merge 10 commits into
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
The reason why I introduce a new |
jong-kyung
left a comment
There was a problem hiding this comment.
💯 All looks good to me
|
For this case, what option does pnpm require to run scripts directly? I’m wondering if we can implement this without adding a new option. |
@fengmk2 pnpm / npm 12+ uses |
|
Let’s hold off on merging this fix for now and revisit the best way to address it after the 1.0 release. |
Close #2766
Global installs and updates skip lifecycle scripts by default.
--run-scriptsenables all scripts, including transitive dependencies, using the selected Node.js runtime and its bundled npm.When scripts are skipped, a warning after the installation summaries lists the affected packages and gives a reinstall command. The command preserves an explicitly selected Node.js version. Project-install defaults stay unchanged.
🤖 Generated with Codex