For people who stumble upon this at a later point of time, this can be fixed by setting strict-ssl
option of npm as false.
npm config set strict-ssl false
But please note that this would lead to a lack of security for your machine.
Вопрос
Okay, so I've set up cordova in my machine and everything works fine.
D:\PhoneGap\apps\hello>cordova -v
3.1.0-0.2.0
I'm able to create a new project using the create
command. And I've got the structure that's needed (www folder et all). But when I run the following command :
cordova platform add android
I get the following error :
Downloading cordova library for android... [Error: Unable to fetch platform android: Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE ]
Looks like a node.js error to me. Some extra stuff you'd want to know :
Do any of you guys know what could be the issue?
Решение
For people who stumble upon this at a later point of time, this can be fixed by setting strict-ssl
option of npm as false.
npm config set strict-ssl false
But please note that this would lead to a lack of security for your machine.