ERRROR during installation


#1

since yesterday i have been trying to install NS but it will take a longer time before printing this error, tried today, decided to time it, it took 3hrs to install and got confronted with same error message again…

npm ERR! Linux 4.4.0-83-generic
npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “install” “nativescript” “-g” "–unsafe-perm"
npm ERR! node v7.10.0
npm ERR! npm v4.2.0
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! tar.unpack unzip error /tmp/npm-5162-a8ab8a66/registry.npmjs.org/moment/-/moment-2.10.6.tgz


#2

Well, are you behind a proxy? If so, did you configure it correctly?


#3

find or create .npmrc file in your /Users/user-name folder and put proxy credentials in those something like this
strict-ssl=false
proxy=proxyUsername:proxyPassword@proxyIP:proxyPort


#4

i am not behind any proxy


#5

Are you able to get here in your browser? http://registry.npmjs.org/