i am trying to install nativescript on Windows and on Mac. What i did now: installing the latest NodeJS (v.6.11.1) and npm v3.10.10 on both devices. I am behind a corporative Proxy, so i needed to configure it.
It works fine so far. When i go for npm install -g nativescript or npm install nativescript i get following errors:
First all fetches fail
(npm ERR! fetch failed registry.npmjs . org/yargs/-/yargs-6.0.0.tgz
npm WARN retry will retry, error on last attempt: Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND proxyname proxyname:port)
then he tells me again, that everything failed - basically.
(example: npm ERR! fetch failed https// registry.npmjs.org/@types/chai/-/chai-4.0.1.tgz)
npm ERR! Windows_NT 10.0.10240
npm ERR! argv “C:\ Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “install” “-g” "nativescript"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! code ECONNRESET
npm ERR! network tunneling socket could not be established, cause=getaddrinfo ENOTFOUND proxyname proxyname:Port
If i dont remove that “s” after https-proxy definition:
npm ERR! fetch failed https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz
npm WARN retry will retry, error on last attempt: Error: tunneling socket could not be established, cause=write EPROTO 101057795:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c:794:
npm WARN retry
I am trying to fix these errors for quite a long time, but i am running out of ideas. Does anyone have a clue what to do/how to fix it?
Edit: I could only put two links into this post, so i had to edit the links a little bit