Skip to main content

npmrc

//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 -> cert
    • keyfile path -> key

env fallback

PUPPETEER_DOWNLOAD_BASE_URL
npm_config_puppeteer_download_base_url
npm_package_config_puppeteer_download_base_url