1. 程式人生 > >在win7 64上用npm安裝phantomjs時出現Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE錯誤的解決方法。

在win7 64上用npm安裝phantomjs時出現Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE錯誤的解決方法。

解決方案在stackoverflow上找到的,關掉strict-ssl即可,如下:

npm config set strict-ssl false

用完之後恢復:

npm config set strict-ssl true

http://stackoverflow.com/questions/20747817/error-unable-to-verify-leaf-signature-phonegap-installation ---------------------  作者:newborn2012  來源:CSDN  原文:https://blog.csdn.net/newborn2012/article/details/21071015  版權宣告:本文為博主原創文章,轉載請附上博文連結!