A
A
alexeyborisov752021-07-02 22:17:59
Node.js
alexeyborisov75, 2021-07-02 22:17:59

What is the command line swearing at?

I need to transfer artifacts from one artifactory (on jfrog) to another (on Nexus) for this I use https://www.npmjs.com/package/npm-migrate

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))


I specify addresses in from and tu , but the console gives an error

ParserError:
Line |
  12 |  migrate(moduleName, from, to, options)
     |                    ~
     | Missing argument in parameter list.


what am i doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question