1.0.1 • Published 7 years ago
npm-registry-swap v1.0.1
#Installation using npm
$ npm install -g npm-registry-swapRegistries file
You need to create a registry collection file in any directory at your choice, and use it when you want to switch between registries.
By default the the package will try to get the file, named .npm_registries, from the user data directory.
If you dont know where is this directory use the command npm config ls and check the ; userconfig section;
NOTE: Currently it supports Windows only.
File content should look similar to this
{
"global": {
"registry": "https://registry.npmjs.com/",
"strict-ssl": "false",
"shrinkwrap": "false"
},
"your-repo":{
"registry": "https:<your-private-repo>",
"strict-ssl": "false",
"shrinkwrap": "false",
}
}Usage
$ npm-reg-swap "target=your-repo" "registry-path=<your_file_path>"1.0.1
7 years ago