devcert-cli icon indicating copy to clipboard operation
devcert-cli copied to clipboard

Error: "localhost" is not a valid domain name

Open drmcclelland opened this issue 3 years ago • 0 comments

I did a fresh install (global) of devcert-cli, which that automatically depends on the latest version of devcert (as of now, 1.2.1) and now I'm getting an error message when trying to generate certificates for localhost.

This issue may be related: https://github.com/davewasmer/devcert/issues/83

Steps to reproduce:

  1. Uninstall: npm uninstall devcert-cli -g

  2. Install: npm install devcert-cli -g

  3. Check versions: npm list devcert -g

image

  1. Try to generate a new cert for localhost: devcert generate localhost

That's when I get the message: Error: "localhost" is not a valid domain name.

drmcclelland avatar May 12 '22 16:05 drmcclelland