Facing connection reset error on updating ionic in ubuntu


#1

I am facing strange ECONNRESET error on updating ionic on my ubuntu.

FYI - I am not behind any proxy.

Error -

root@swapnesh:/home/swapnesh# npm install -g cordova ionic
npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"4.0.0","npm":"2.14.2"})
/usr/local/bin/cordova -> /usr/local/lib/node_modules/cordova/bin/cordova
npm ERR! Linux 3.13.0-65-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova" "ionic"
npm ERR! node v4.0.0
npm ERR! npm  v2.14.2
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read

npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network 
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
npm ERR! Linux 3.13.0-65-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova" "ionic"
npm ERR! node v4.0.0
npm ERR! npm  v2.14.2
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read

Things I did to resolve from various stack posts and github, with no luck.

  • Changed registry from https to http .
  • Instead of running npm install -g ionic I also tried npm install -g cordova ionic
  • My npm and node are not fom monolithic age. Node - 4.0.0 and npm - 2.14.2
  • Tried sudo rm -rf ~/.npm and then npm install but no luck.

Let me know what else I am missing.