1

I suddenly faced an error when starting a nextJS app after running the following commands:

ssh-keygen -t rsa -C "myemail@example.com"

After setting up the passphrase I cannot run npm run dev and get the following issue:

{
  code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
}

I also tried disabled the ssl on npm but it is still not working

ashes999
  • 1,234
  • 1
  • 12
  • 36

1 Answers1

1

UNABLE_TO_VERIFY_LEAF_SIGNATURE should be an error seen with certificate issue for HTTPS URLs (like here), not SSH.

In other works, your SSH key should not be involved at all.

If you have git+https:// URLs in your dependencies:

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250