欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

Node.js:使用 nrm 管理 npm 源

最编程 2024-03-14 07:19:33
...
$ nrm -h
Usage: nrm [options] [command]

Options:
-V, --version output the version number
-h, --help output usage information

Commands:
ls List all the registries
current [options] Show current registry name or URL
use <registry> Change registry to registry
add <registry> <url> [home] Add one custom registry
login [options] <registryName> [value] Set authorize information for a custom registry with a base64 encoded string or username and pasword
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 [options] <registryName> Set custom registry attribute
rename <registryName> <newName> Set custom registry name
del <registry> Delete one custom registry
home <registry> [browser] Open the homepage of registry with optional browser
publish [options] [<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
test [registry] Show response time for specific or all registries
help Print this help
if you want to clear the NRM configuration when uninstall you can execute "npm uninstall nrm -g -C or npm uninstall nrm -g --clean"