Skip to main content

Disable npm install scripts

(for security purposes)

  • Globally:
    • run npm config set ignore-scripts true
    • this will populate ~/.npmrc
  • Per repo:
    • create ./.npmrc
    • add ignore-scripts=true into that file