Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
5.3.2
-
None
Description
While installing camera plugin in my project I am getting certification error:
Fetching plugin "cordova-plugin-camera@~2.4.0" via npm
Fetching from npm failed: certificate not trusted
__ exec error: Error: Command failed: /bin/sh -c cordova plugin add cordova-plugin-camera@~2.4.0
__ npm http GET https://registry.npmjs.org/cordova-plugin-camera
__ npm http GET https://registry.npmjs.org/cordova-plugin-camera
__ npm http GET https://registry.npmjs.org/cordova-plugin-camera
__ npm http GET https://registry.npmjs.org/cordova-plugin-camera/-/cordova-plugin-camera-2.4.1.tgz
__ npm ERR! fetch failed https://registry.npmjs.org/cordova-plugin-camera/-/cordova-plugin-camera-2.4.1.tgz
__ npm http GET https://registry.npmjs.org/cordova-plugin-camera/-/cordova-plugin-camera-2.4.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/cordova-plugin-camera/-/cordova-plugin-camera-2.4.1.tgz
__ npm http GET https://registry.npmjs.org/cordova-plugin-camera/-/cordova-plugin-camera-2.4.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/cordova-plugin-camera/-/cordova-plugin-camera-2.4.1.tgz
Error: certificate not trusted
at Error (native)
at TLSSocket.<anonymous> (_tls_wrap.js:929:36)
at TLSSocket.emit (events.js:104:17)
at TLSSocket._finishInit (_tls_wrap.js:460:8)
Cordova version : 5.3.2
Camera plugin version: 2.4.0
Did anyone have any pointer on this?