Error 'tunneling socket' while executing npm install

error synonym
error formula
error definition in computer
concept of error
error code
types of error
error calculation
error equation

I'm getting the error shown below while trying to execute 'npm install' command.

Error: tunneling socket could not be established, cause=connect ECONNREFUSED

What do I miss?

If you are behind a proxy, set it correctly in npm.

>npm config set proxy http://proxyhost:proxyport
>npm config set https-proxy http://proxyhost:proxyport


  1. For SSL/https proxies, the protocol in URL should be http not https

  2. If your set up is on a Docker/Vagrant instance or a hosted VM, use IP address instead of hostname for proxy as the later might not be resolvable.

  3. If there is no proxy , remove proxy config from npm

    >npm config set proxy null
    >npm config set https-proxy null

Error, Error definition, a deviation from accuracy or correctness; a mistake, as in action or speech: His speech contained several factual errors. See more. er·ror (ĕr′ər) n. 1. An act, assertion, or belief that unintentionally deviates from what is correct, right, or true. 2. The condition of having incorrect or false

according to this it's proxy isssues, try to disable ssl and set registry to http instead of https . hope it helps!

npm config set registry=
npm config set strict-ssl false

Error, Error definition is - an act or condition of ignorant or imprudent deviation from a code of behavior. How to use error in a sentence. Synonym Discussion of error. This article may lack focus or may be about more than one topic. Please help improve this article, possibly by splitting the article and/or by introducing a disambiguation page, or discuss this issue on the talk page.

I know this is way too late but if someone has a similar issue in the future and you are sure you have no proxy set but you have an environment variable called http_proxy. Please delete it and try again. I had set a proxy for Fiddler.

Error, Error objects are thrown when runtime errors occur. The Error object can also be used as a base object for user-defined exceptions. See below  Error, in applied mathematics, the difference between a true value and an estimate, or approximation, of that value. In statistics, a common example is the difference between the mean of an entire population and the mean of a sample drawn from that population. In numerical analysis, round-off error

Following commands may solve your issue:

npm config set proxy false
npm cache clean

It solved my same issue.

Error, error meaning, definition, what is error: a mistake: Learn more. Synonyms for errors at with free online thesaurus, antonyms, and definitions. Find descriptive alternatives for errors.

Removing the proxy settings resolved the issue:

If you are no using any proxy:

npm config rm proxy
npm config rm https-proxy

If you are using Proxy:

npm config set proxy http://proxyhostname:proxyport
npm config set https-proxy http://proxyhostname:proxyport

Hopefully this will solve your problem :)

error, 1.1mass noun The state or condition of being wrong in conduct or judgement. '​goods dispatched to your branch in error'. More example sentences. In error definition is - not correct : mistaken. How to use in error in a sentence.

Error, NounEdit. error (countable and uncountable, plural errors). (uncountable) The state, quality, or condition of being wrong. quotations ▽. 1913, The Inland printer:​. P ress the Windows key, type Network problems, and then select Identify and repair network problems in the list.; Follow the steps in the wizard to diagnose and resolve your network problems.

error, Error definition: An error is something you have done which is considered to be incorrect or wrong, or | Meaning, pronunciation, translations and examples.   The following table lists the most common upgrade and installation errors and some things you can try to fix them. If you continue having problems upgrading or installing Windows 10, contact Microsoft support.

Error definition and meaning, An error describes any issue that arises unexpectedly that cause a computer to not function properly. Computers can encounter either software  The following example uses @@ERROR with @@ROWCOUNT to validate the operation of an UPDATE statement. The value of @@ERROR is checked for any indication of an error, and @@ROWCOUNT is used to ensure that the update was successfully applied to a row in the table.