Search code examples
express-gateway

Stuck when creating credentials - Yargs through package.json is deprecated


I´m using Windows 10 and following the "Getting started" tutorial, but after creation of user I can´t create the credential for him.

the command line:

eg credentials create -c bob -t key-auth -q

the result:

Configuring yargs through package.json is deprecated and will be removed in the next major release, please use the JS API instead. Configuring yargs through package.json is deprecated and will be removed in the next major release, please use the JS API instead. Configuring yargs through package.json is deprecated and will be removed in the next major release, please use the JS API instead.

then I must press Control+C to stop the process.


Solution

  • unfortunately yes, we have a problem with yargs on Windows which is actually tracked in our GitHub repository: https://github.com/ExpressGateway/express-gateway/issues/889

    My idea would be to replace yargs with oclif or something modern, but I haven't been able to work on it yet.

    Also, I do not have a Windows machine so it is kind of difficult to test it out properly.