Or use pnpm. The latest versions have all dependency lifecycle scripts ignored by default. You must whitelist each package.
Same for bun, which I find faster than pnpm
Deleted Comment
The fact that they successfully got the book removed from sale for a while speaks volumes. They not only lie they are encouraged to.