Skip to content

使用 nrm 切换 registry #82

@hawtim

Description

@hawtim

背景

平时切换公司和家庭网络的时候发现 registry 还是公司的,特意用 nrm 包来处理

安装

npm install -g nrm

列出所有可用的源

nrm ls

image

使用 npm 原始源

nrm use npm

添加公司的 npm 源

nrm add company_name https://npm.company_name.com

这样就可以很方便的切换了。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions