Reputation: 69
I am very new to the world of npm and node.js. I am trying to start a phonegap application and upon entering $ cordova create hello com.example.hello HelloWorld
I receive
Downloading cordova library for www... Error: connect ECONNREFUSED at errnoException (net.js:905:11) at Object.afterConnect [as oncomplete] (net.js:896:19)
Has anyone had this problem and know a possible solution? I am a n00b so I could be doing something very stupid - any help would be appreciated.
Upvotes: 1
Views: 988
Reputation: 7370
A colleague of mine just had this problem. Looks like he's on a newer version of node than I am (I'm on 0.10.32 and he's on 0.10.35). I assume for this reason, he had a different setting for strict-ssl
than I did (his was false
, mine is true
). So I had him run:
npm config set strict-ssl true
And it solved the problem for him. Hopefully this works for you too.
Upvotes: 2