npm 临时更改当前 registry

 •  Filed under nodejs

设置环境变量npm_config_registry为目标registry

Linux/MACOS下

export npm_config_registry=https://registry.npmjs.org