1

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.

graffitiMSX
  • 73
  • 1
  • 8

1 Answers1

-1

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.

Vincenzo
  • 1,549
  • 1
  • 9
  • 17
  • Thansk for your answer! I´ll try to use the GitBash or PowerShell in order to generate the credentials! – graffitiMSX Jun 14 '19 at 13:37
  • I´ve used the gitBash and it worked. Another problem I´ve faced is that I can´t access the admin page, it return "Cannot GET /ip" when I try to access the localhost:9876 page: `info: gateway http server listening on :::8080 info: admin http server listening on 127.0.0.1:9876` `$ curl http://localhost:8080/ip ... Error ...
    Cannot GET /ip
    `
    – graffitiMSX Jun 17 '19 at 13:02
  • You might need to change the listening interface to 0.0.0.0 so that processes outside of the containers can talk with the admin API – Vincenzo Jun 17 '19 at 15:38
  • I am facing the same issue. – kittu Jul 21 '20 at 07:38