npmrc
- 位置
- $PROJECT_DIR/.npmrc
- $HOME/.npmrc
- $GLOBAL_PREFIX/etc/npmrc
- $NPM_PREFIX/npmrc - 内置
- 语法
${VARIABLE_NAME}
- 参考
//registry.npmjs.org/:_authToken=
# //gitlab.com/api/v4/projects/$ID/packages/npm/:_authToken=
# //npm.pkg.github.com/:_authToken=
registry=https://registry.npmmirror.com/
sharp_binary_host=https://npmmirror.com/mirrors/sharp
sharp_libvips_binary_host=https://npmmirror.com/mirrors/sharp-libvips
init.type=module
# @myscope:registry=https://mycustomregistry.example.org
# //mycustomregistry.example.org:_authToken=
npm login
- auth
_auth
Base64_authToken
(authentication token)username
_password
email
certfile
path -> certkeyfile
path -> key
env fallback
PUPPETEER_DOWNLOAD_BASE_URL
npm_config_puppeteer_download_base_url
npm_package_config_puppeteer_download_base_url