We\'re trying to use Node.js (and Mocha) as a testing framework to test API calls against an internal server over https. We\'re using the following node modules: Mocha, Restify
UNABLE_TO_VERIFY_LEAF_SIGNATURE
The problem is that you are attempting to install a module from a repository with a bad or untrusted SSL
[Secure Sockets Layer] certificate. That is not uncommon if you work at a company that self signs its certificates for internal repositories.
To work around this issue, you can run the following command:
npm config set strict-ssl false
As a best practice, it is wise to set it back to true afterwords so you do not accidentally install an untrusted module that you actually do not trust.