Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE Phonegap Installation

后端 未结 5 1374
不思量自难忘°
不思量自难忘° 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:28

    You can also disable SSL check in your code using node environment variable :

    in your index.js file, add :

    process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';

    Note that this is not a good habits as it will not try to check the validity of https certificate

提交回复
热议问题