跳至正文
Wener Notes

npmrc

约 1 分钟阅读
标签:配置
ini
//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=
bash
npm login
  • auth
    • _auth Base64
    • _authToken (authentication token)
    • username
    • _password
    • email
    • certfile path -> cert
    • keyfile path -> key

env fallback

text
PUPPETEER_DOWNLOAD_BASE_URL
npm_config_puppeteer_download_base_url
npm_package_config_puppeteer_download_base_url

关联信息

反向链接、本文链接的其他页面和外部资料。

参考资料

GitHub1 条
其他外链1 条
最近更新commit 9483fed编辑