Skip to content

Instantly share code, notes, and snippets.

@brettz9
Last active September 28, 2019 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brettz9/1e714cc43a983ee320043a56478e1ca4 to your computer and use it in GitHub Desktop.
Save brettz9/1e714cc43a983ee320043a56478e1ca4 to your computer and use it in GitHub Desktop.
My current npmrc config
; Can get this file by `npm config edit` but doing so causes loss of some comments; better go get at `/Users/brett/.npmrc`
; Filed https://npm.community/t/npm-config-edit-reformats-file-stripping-user-comments/10287
; Off topic, but good info on migrating global npm for nvm:
; https://github.com/nvm-sh/nvm#migrating-global-packages-while-installing
; Also off topic: `npm star` not working
; https://npm.community/t/npm-star-shows-a-star-but-npm-stars-doesnt-list-any-stars-thereafter/10284
; Let\'s just try this and disable if ends up too oppressive (useful to
; report back to authors)
engine-strict=true
; Could try one of these:
; loglevel= <silent|error|warn|http|info|verbose|silly>
; see https://gist.github.com/brettz9/b5863cc36539b0f9ce87975b5faad0b1/edit
editor=atom -a
; Path doesn\'t seem to work and `browser` opens in Atom for me! (using
; `.html` default apparently instead of default browser)
; Reported at https://npm.community/t/npm-config-viewer/10286
; viewer="/Applications/Google Chrome.app"
; For use with `npm init`
; Also interesting config for future (to run own code on `npm init`):
; `init-module`
; See also https://github.com/isaacs/init-package-json and
; https://docs.npmjs.com/cli/init )
; `tag-version-prefix` is also relevant here but shouldn\'t change
init-version=0.1.0
init-author-name=Brett Zamir
init-author-email=brettz9@yahoo.com
init-author-url=http://brett-zamir.me
init-license=MIT
; Useful with `npm version`
message=- npm: Bump update to v%s
; Use with `npm search` and `npm ls`
; gets more info (e.g., descriptions)
long=true
; Note: for `npm search`, prefix user name with `=`
; Note: can use `/` at beginning for regex search!
; Interesting for future? Include/exclude options for `npm search`
; searchopts=<space-separated options>
; searchexclude=<space-separated options>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment