Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE Phonegap Installation

后端 未结 5 1359
不思量自难忘°
不思量自难忘° 2020-12-02 11:45

I\'m trying to install Phonegap in Ubuntu. The installation of NodeJS was successful, however I can\'t install Phonegap itself. Here is the error output of terminal:

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 12:45

    I got the same error, given I was behind a corporate firewall/proxy and my connection was passed the proxy's certificate.

    In your command line run:

    npm config set strict-ssl false
    

    NOTE: that this is not best practice to blindly accept untrusted or invalid SSL certificates, which is what the command does (turn off certificate checking). You can run

    npm config set strict-ssl true
    

    to turn it back on.

    ref: https://thomashunter.name/blog/npm-ssl-errors/

提交回复
热议问题