NodeJS UNABLE_TO_VERIFY_LEAF_SIGNATURE

前端 未结 7 1496
鱼传尺愫
鱼传尺愫 2021-02-04 00:36

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

7条回答
  •  别那么骄傲
    2021-02-04 00:57

    sometimes, if you are using network with some proxy configurations, npm fails to verify package signature.

    Try this,

    npm set strict-ssl false
    

    Taken from https://github.com/Leaflet/Leaflet/issues/2860

    After that,

    npm cache clean --force
    

    It will work. I tried this.

提交回复
热议问题