nrm 镜像源管理工具

nrm 镜像源管理工具Install 资源列表 常用命令 命令列表 * npm – https://registry.npmjs.org/ yarn – https://registry.yarnpk

Install

 npm install -g nrm

资源列表

$ nrm ls

* npm -----  https://registry.npmjs.org/
  yarn ----- https://registry.yarnpkg.com
  cnpm ----  http://r.cnpmjs.org/
  taobao --  https://registry.npm.taobao.org/
  nj ------  https://registry.nodejitsu.com/
  skimdb -- https://skimdb.npmjs.com/registry

常用命令

    // 切换
    nrm use taobao
    // 添加 其中name为自定义源名
    nrm add name https://registry.npm.taobao.org/
    // 删除 其中name为自定义源名
    nrm del name
    // 测试速度
    nrm test taobao // * taobao --- 203ms

命令列表

$ nrm -h
Usage: nrm [options] [command]

  Commands:

    ls                                    List all the registries
    current                               Show current registry name
    use <registry>                        Change registry to registry
    add <registry> <url> [home]           Add one custom registry
    set-auth <registry> [value]           Set authorize information for a custom registry with a base64 encoded string or username and pasword
      -a  --always-auth Set is always auth
      -u  --username <username> Your user name for this registry
      -p  --password <password> Your password for this registry
    set-email <registry> <value>          Set email for a custom registry
    set-hosted-repo <registry> <value>    Set hosted npm repository for a custom registry to publish packages
    del <registry>                        Delete one custom registry
    home <registry> [browser]             Open the homepage of registry with optional browser
    test [registry]                       Show the response time for one or all registries
    publish [<tarball>|<folder>]          Publish package to current registry if current registry is a custom registry.  if you're not using custom registry, this command will run npm publish directly -t --tag [tag] Add tag -a --access <public|restricted> Set access -o --otp [otpcode] Set otpcode -dr --dry-run Set is dry run help Print this help Options: -h, --help output usage information -V, --version output the version number 

今天的文章nrm 镜像源管理工具分享到此就结束了,感谢您的阅读。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/20614.html

(0)
编程小号编程小号

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注