Last active
December 21, 2019 22:08
-
-
Save tcrowe/19b2469838919535a7ba2b43d29c97f2 to your computer and use it in GitHub Desktop.
optimize and shut-up npm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For security reasons you may choose to change scripts and auditing: