0

Getting error when installing npm. Here is the node and its dependencies

$ npm -v
2.7.4
$ node -v
v0.12.2
$ nvm list
->      v0.12.2
stable -> 0.12 (-> v0.12.2) (default)

Here is the full error trace

$ npm install
npm WARN package.json malarvizhi@1.0.0 No description
npm WARN package.json malarvizhi@1.0.0 No repository field.
npm WARN package.json malarvizhi@1.0.0 No README data
npm WARN package.json Dependency 'grunt' exists in both dependencies and devDependencies, using 'grunt@^0.4.5' from dependencies
npm ERR! Linux 3.13.0-48-generic
npm ERR! argv "/home/malarvizhi/.nvm/versions/node/v0.12.2/bin/node" "/home/malarvizhi/.nvm/versions/node/v0.12.2/bin/npm" "install"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! syscall connect

npm ERR! Error: connect ECONNREFUSED
npm ERR!     at exports._errnoException (util.js:746:11)
npm ERR!     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1000:19)
npm ERR!  { [Error: connect ECONNREFUSED]
npm ERR!   code: 'ECONNREFUSED',
npm ERR!   errno: 'ECONNREFUSED',
npm ERR!   syscall: 'connect',
npm ERR!   parent: 'malarvizhi' }
npm ERR! 
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly.  See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR!     /home/malarvizhi/npm-debug.log

I tried with uninstall and reinstalled. But still it can occur. Any answers?

Pez
  • 1,091
  • 2
  • 14
  • 34
  • Apparently `npm` cannot connect to the NPM repository. Have you configured one (in `~/.npmrc`), are you using a proxy server or are you blocking outgoing network connections? – robertklep Apr 23 '15 at 14:30

1 Answers1

-1

try: npm install --no-bin-links

Amr Sobeh
  • 11
  • 3
  • This answer does not provide any explanation why this would offer a solution. Could you please elaborate on why this would work? – Dekker1 Jul 29 '17 at 09:56