nrm

授权协议 MIT License
开发语言 JavaScript
所属分类 Web应用开发、 常用JavaScript包
软件类型 开源软件
地区 不详
投 递 者 商棋
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

nrm -- NPM registry manager

nrm can help you easy and fast switch between different npm registries,now include: npm, cnpm, taobao, nj(nodejitsu).

How to configure yarn to use private registry ?

just add .yarnrc in your project’s directory and write there:registry “http://your.registry”

Or you can configure it in your HOME directory's .yarnrc

Install

$ npm install -g nrm

Example

$ nrm ls

* npm ---------- https://registry.npmjs.org/
  yarn --------- https://registry.yarnpkg.com/
  tencent ------ https://mirrors.cloud.tencent.com/npm/
  cnpm --------- https://r.cnpmjs.org/
  taobao ------- https://registry.npmmirror.com/
  npmMirror ---- https://skimdb.npmjs.com/registry/

$ nrm use cnpm  //switch registry to cnpm

    Registry has been set to: http://r.cnpmjs.org/

Usage

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
    login <registry> [value]              Set authorize information for a 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
      -e  --email <email>                   Your email for this registry
    set-hosted-repo <registry> <value>    Set hosted npm repository for a custom registry to publish packages
    set-scope <scopeName> <value>         Associating a scope with a registry
    del-scope <scopeName>                 Remove a scope
    set <registryName>                    Set custom registry attribute
      -a  --attr <attr>                    Set custorm registry attribute
      -v  --value <value>                  Set custorm registry value
    del <registry>                        Delete one custom registry
    rename <registryName> <newName>       Set custom registry name
    home <registry> [browser]             Open the homepage of registry with optional browser
    publish [<tarball>|<folder>]          Publish package to current registry if current registry is a custom registry. The field 'repository' of current custom registry is required running this command. 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
    test [registry]                       Show the response time for one or all registries
    help                                  Print this help

  Options:

    -h  --help     output usage information
    -V  --version  output the version number

Registries

Related Projects

TODO

  1. Add more registry: github, sonatype, sap

Notice

When you are using preset registries the publish command will proxy to the npm official registry.When you are using a custom registry you will need to run the set-hosted-repo to set a url to publish pacakges to your hosted registry.

Maintainer is wanted

If you find nrm is useful and is a experienced node.js developer, then you can help maintain nrm.If you have the interest you can reach me through email: pana.wang@outlook.com

Contributors

LICENSE

MIT

  • 首先nrm是什么 nrm 是一个 npm 源管理器,使用nrm的命令,就可以快速地在 npm 源间切换。 nrm全局安装 npm install -g nrm 查看nrm版本号 nrm -V //注意是大写的V 看看你电脑中所有的镜像 nrm ls 切换镜像源 nrm use 你想切换的镜像比如 nrm use taobao 查看你现在使用的镜像源 nrm current 安装企业内部

  • 管理npm的仓库的方式有很多种。 使用nrm 也是比较推荐的一个方式。官网链接 大概说一下常用的命令; npm install -g nrm // 全局安装nrm 安装之后我们可以查看有哪些仓库 nrm ls http://t.zoukankan.com/jpfss-p-11113004.html 这时候我运行报错 (无法将“nrm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请

  • 一、简介 nrm(npm registry manager )是npm的镜像源管理工具,可以方便的更换npm的包源。可解决问题: 1、更换国内镜像包源(如淘宝npm镜像)解决国内npm国外包慢的问题。 2、更换某些内网独立包源,实现安装私有服务器的npm包。 nrm官网: nrm地址 github地址 二、安装过程 检查nrm是否安装,查看版本号: nrm -V 如果有返回版本号,则已安装。如果

  • 文档 github https://github.com/Pana/nrm npmjs https://www.npmjs.com/package/nrm npm切换源 # 设置源 $ npm set registry https://registry.npm.taobao.org/ # 查看npm源 $ npm config ls 使用nrm管理npm源 安装 $ npm install -

  • nrm(npm registry manager )是npm的镜像源管理工具,有时候国外资源太慢,使用这个就可以快速地在 npm 源间切换 一、安装源 // 全局安装 npm install -g nrm 二、nrm 常用命令 1.命令 nrm ls 显示所有源 // 查看可选源 nrm ls 2.添加可选源 nrm add ,其中reigstry为源名,url为源的路径。 nrm add b

相关阅读

相关文章

相关问答

相关文档