problems installing the npm to use Vue.js in laravel 5.5


I try to install npm to use vue.js in my laravel project but I get this error when I execute the npm install command:

npm ERR! errno ETIMEDOUT
npm ERR! network request to failed, reason: connect ETIMEDOUT
npm ERR! network This is a problem 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! A complete log of this run can be found in:
npm ERR!     C:\Users\alberto89\AppData\Roaming\npm-cache\_logs18-04-17T20_25_48_205Z-debug.log

I am using the version of node: v9.11.1 and the version of npm: 5.6.0 . dear colleagues that may happen.

asked by albertolg89 17.04.2018 в 22:27

2 answers


Since your computer connects through a proxy and seems to be the only way to connect, you should modify the settings of npm . To do this you must execute the following commands:

$ npm config set proxy http://<user>:<pass>@<server>:<port>
$ npm config set https-proxy http://<user>:<pass>@<server>:<port>


  • user The user you are using to connect through the proxy.
  • pass . The password of this user.
  • server The address of the proxy server.
  • port The port used by the proxy server.

The user or password may not be necessary, depending on the proxy settings, in which case they would be the same commands without the <user>:<pass>@ part. I hope I have helped you.

answered by 18.04.2018 / 14:46

If you are using a proxy to connect to the Internet, you have to configure npm to recognize that proxy.

Open a console and enter the following command:

npm set proxy http://dominio_proxy:puerto

Where proxy_domain can be or port is the port number through which the proxy server is running

answered by 18.04.2018 в 14:43