E
E
Eugene Zalivadnyi2015-10-24 20:40:46
Node.js
Eugene Zalivadnyi, 2015-10-24 20:40:46

Why does npm install take forever?

Trying to install bower npm install -g bower. The installation takes forever and without errors. Other packages are also not installed.

ОС: Windows 7 максимальная
node --version v4.2.1 npm --version 2.14.7

Google throws on cases with error output, or on packages with the names infinity. I tried disabling the firewall and antivirus, creating a new user - nothing helped.
Log:
> npm --verbose install bower -g
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
npm verb cli 'C:\\Program Files\ \nodejs\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli '--verbose',
npm verb cli 'install',
npm verb cli 'bower',
npm verb cli '-g' ]
npm info using [email protected]
npm info using [email protected]
npm verb install initial load of C:\Users\Master\AppData\Roaming\npm\package.json
npm verb readDependencies loading dependencies from C:\Users\ Mister\AppData\Roaming\npm\package.json
npm verb cache add spec bower
npm verb addNamed "*"is a valid semver range for bower
npm verb addNameRange registry:https://registry.npmjs.org/bower not in flight; fetching npm verb request uri https://registry.npmjs.org/bower
npm verb request no auth needed
npm info attempt registry request try #1 at 21:13:52
npm verb request id 42b350c699e740d2
npm http request GET https://registry .npmjs.org/bower

npm install -g bower --loglevel silly
npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
npm verb cli 'C:\\Program Files\ \nodejs\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli 'install',
npm verb cli '-g',
npm verb cli 'bower',
npm verb cli '--loglevel' ,
npm verb cli 'silly' ]
npm info using [email protected]
npm info using [email protected]
npm sill loadCurrentTree Starting
npm sill install loadCurrentTree
npm sill install readGlobalPackageData
npm sill fetchPackageMetaData bower
npm sill fetchNamedPackageData bower npmy
sill nameer mapTo
npm sill mapToRegistry using default registry
npm sill mapToRegistry registry https://registry.npmjs.org/
npm sill mapToRegistry uri https://registry.npmjs.org/bower
npm verb request uri https://registry.npmjs.org/bower
npm verb request no auth needed
npm info attempt registry request try #1 at 23:49:08
npm verb request id 09d461ebd471f9b6
npm http request GET https://registry.npmjs.org/bower

> node -e "require('http').get(' localhost ', res=>console.log(res.headers)).on('error', e=>console.log(e))"
{ [ Error: connect ECONNREFUSED 127.0.0.1:80]
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 80 }

How to fix the error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2015-10-24
@OneFive

Perhaps the name of your package is the same as the package being installed.
Just in case, try renaming, maybe it will help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question