UNABLE_TO_GET_ISSUER_CERT_LOCALLY error when running - webdriver-manager start through npm UNABLE_TO_GET_ISSUER_CERT_LOCALLY error when running - webdriver-manager start through npm jenkins jenkins

UNABLE_TO_GET_ISSUER_CERT_LOCALLY error when running - webdriver-manager start through npm


This error message...

Error: unable to get local issuer certificate.'UNABLE_TO_GET_ISSUER_CERT_LOCALLY'

...implies that npm was unable to initiate protractor properly.


Solution

A quick solution would be to turn strict-ssl to false as follows:

npm config set strict-ssl false

As an alternative you can also configure the npm as follows:

npm config set registry http://registry.npmjs.org/