Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner 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
You can’t perform that action at this time.