Skip to content

Instantly share code, notes, and snippets.

@tcrowe
Last active December 21, 2019 22:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcrowe/19b2469838919535a7ba2b43d29c97f2 to your computer and use it in GitHub Desktop.
Save tcrowe/19b2469838919535a7ba2b43d29c97f2 to your computer and use it in GitHub Desktop.
optimize and shut-up npm
npm config set -g send-metrics false
npm config set -g metrics-registry "http://127.0.0.1:11923"
npm config set -g ham-it-up false
npm config set -g optional false
npm config set -g loglevel error
npm config set -g init-version "0.1.0"
npm config set -g init-license "UNLICENSED"
npm config set -g init-author-url ""
npm config set -g init-author-email ""
npm config set -g init-author-name ""
npm config set -g depth 0
npm config set -g prefer-offline true
npm config set -g maxsockets 8
npm config set -g progress false
npm config set -g save-prod true
npm config set -g searchlimit 10
npm config set -g shrinkwrap false
npm config set -g package-lock false
npm config set -g update-notifier false
npm config set -g engine-strict false
# ⚠️ if you allow scripts to run it is a security risk
# please look at the implications of this setting
npm config set -g ignore-scripts false
npm config set -g audit false
@tcrowe
Copy link
Author

tcrowe commented Jun 6, 2018

For security reasons you may choose to change scripts and auditing:

npm config set ignore-scripts true -g
npm config set ignore-prepublish true -g
npm config set audit true -g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment