Fix npm install RequestError: connect ETIMEDOUT Error – Node.js Tutorial

By | October 11, 2020

When you are using npm install command to install some packages, you may get this error: RequestError: connect ETIMEDOUT. In this tutorial, we will introduce you how to fix it.

How to fix npm install RequestError: connect ETIMEDOUT?

We should set registry url for npm.

Here is an example:

We plan to set registry to

Method 1

Run command below:

npm --registry info underscore

Method 2

Run command below:

npm config set registry 
npm info underscore

Then you will find a response.

set node.js npm registry

Method 3

Edit file ..nodejs\node_modules\npm\npmrc

and add content below at the end of npmrc file.

registry =

Leave a Reply

Your email address will not be published. Required fields are marked *