1
1
1alexandr2015-07-26 10:56:14
ubuntu
1alexandr, 2015-07-26 10:56:14

How to install gulp globally?

Tell me what could be the problem? I'm trying to install gulpjs with the command
sudo npm install -g gulp
After a long wait of 10-15 minutes, I get the following output

npm ERR! Linux 3.13.0-58-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "--global" "gulp"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect

npm ERR! network connect ETIMEDOUT
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is 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! Please include the following file with any support request:
npm ERR!     /home/anikolaev/npm-debug.log

npm and nodejs seem to be fresh
[email protected]:~$ npm -v && nodejs -v
2.11.3
v0.12.7

Help pliz!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Kitmanov, 2015-07-26
@k12th

Well, in general, it is written in English and white that the problem is with the network, and, most likely, with the proxy. Here are a couple of links: jjasonclark.com/how-to-setup-node-behind-web-proxy wil.boayue.com/blog/2013/06/14/using-npm-behind-a -... strange errors appear, then try to do npm config set registry http://registry.npmjs.org/this - this will change the address where npm goes for packages to HTTP-shny (instead of the default HTTPS).

A
Azamat_Ibraimov, 2020-05-05
@Azamat_Ibraimov

--save-dev

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question