Npm will not install packages "npm ERR! Network tunnel socket cannot be installed, reason = Analysis error"

I am having problems with npm and node version 0.10.40. I have never had this problem before, and I am not involved in a proxy server. I tried other solutions that I found in Qaru and other forums, such as changing the registry URL to http: // .. instead of https: // .. and setting strict-ssl to false. When I do this, npm cannot parse JSON. Here is my npm-debug.log. Maybe someone can help me understand what is happening.

npm-debug.log

+4
source share
4 answers

I solved this problem by issuing the following commands

npm config set proxy false
npm cache clean

-, npm - , -. .

+14

- ,

npm config set proxy http://xxx.xxx.xxx.x:8080
npm config set https-proxy http://xxx.xxx.xxx.x:8080

-

npm config set proxy false
  npm cache clean

+4

: -

npm phantomJS/CasperJS - , casperjs phantomjs App_data C:/.

:

npm config set proxy false
npm cache clean

casperjs phantomjs PATH .

casperjs... .

0
source

Source: https://habr.com/ru/post/1608997/


All Articles