1 min read

NO_POSTINSTALL_SCRIPT

Prevent the use of `"postinstall"` script in packages.
Table of Contents

Conformance is available on Enterprise plans

This rule is available from version 1.4.0.

Modifying, adding, or updating any dependencies in your application triggers the execution of the "postinstall" script. Consequently, incorporating a "postinstall" script in your application's package.json leads to increased installation times for all users.

If you hit this issue, you can resolve it by removing the "postinstall" script in the package.json file.

package.json
{
  "scripts": {
    "postinstall": "sleep 360"
  },
}
Last updated on May 18, 2024