Migrate all versions of a selected package from a registry to another one.
const migrate = require('npm-migrate')
const moduleName = 'my-private-module'
const from = 'http://your-old.private-registry.com:8080'
const to = 'http://nice-new.private-registry.org:8080'
// optional
const options = {
debug: false // default
}
migrate(moduleName, from, to, options)
.then((migrated) => console.log(migrated)) // list of migrated packages
.catch((err) => console.error(err))
package.json
: the publishConfig.registry
field to the new registry url