Skip to main content

4 posts tagged with "npm"

View All Tags

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

Npm Q&A

Npm is a package manager for JavaScript projects. What this means is that it enables easy installation of packages (published to the public registry, https://www.npmjs.com, or private registries) while also installing nested dependencies between packages. I received a bunch of questions about npm, and here are the answers! Note that I haven't looked at implementation details or any specs on how npm works, these answers are merely based on my observations after nearly a decade of using npm.