1.0.1 • Published 8 years ago
npm-use-reg v1.0.1
npm-use-reg
A CLI to easily switch npm registries which are configured by your env varibles
Install:
npm i npm-use-reg -gUsage
npm-use-reg myreg
npm-use-reg npmSetup
Specify your registries by configuring your environment variables
For OSX users
Open your .bash_profile in an editor
nano ~/.bash_profileAdd your registries with the following syntax
export NPM_USE_REG_[your registry name]=[your registry url]Examples:
export NPM_USE_REG_MYREG=https://my.company.com/registry/
export NPM_USE_REG_NPM=https://registry.npmjs.org/