Why is npm running prepare script after npm install, and how can I stop it?

From https://docs.npmjs.com/misc/scripts:

prepare: Run both BEFORE the package is packed and published, and on
local npm install without any arguments (See below). This is run AFTER
prepublish, but BEFORE prepublishOnly.

Since NPM v5, prepare script is executed when you run npm install

Leave a Comment