Upcoming npm v12 will disable preinstall, install, and postinstall scripts from dependencies unless allow-listed.

You can prepare for this change using npm v11 now: https://github.com/orgs/community/discussions/198547