2

I'm learning node.js with learnyounode tutorial. Several times it has asked me to install something like bl,through2-map, etc. Every time I type: npm install through2-map --save

It will run for a few minutes then throw this error

 Linux 4.2.0-c9
npm ERR! argv "/home/ubuntu/.nvm/versions/node/v4.1.1/bin/node" "/home/ubuntu/.nvm/versions/node/v4.1.1/bin/npm" "install" "through2-map" "--save"
npm ERR! node v4.1.1
npm ERR! npm  v3.7.3
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! syscall connect

npm ERR! Error: connect ECONNREFUSED 127.0.0.1:15443
npm ERR!     at Object.exports._errnoException (util.js:837:11)
npm ERR!     at exports._exceptionWithHostPort (util.js:860:20)
npm ERR!     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1060:14)
npm ERR!  { [Error: connect ECONNREFUSED 127.0.0.1:15443]
npm ERR!   code: 'ECONNREFUSED',
npm ERR!   errno: 'ECONNREFUSED',
npm ERR!   syscall: 'connect',
npm ERR!   address: '127.0.0.1',
npm ERR!   port: 15443 }
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/ubuntu/workspace/npm-debug.log

I tried to follow this stackoverflow suggestion npm install not work but that did not work. So can someone help me solve how to set my npm so that I can install these modules. Thanks.

2
  • Do you know if you need to be using a proxy server or not? This question and its answers show how you can set or remove the proxy setting. If you don't know whether or not you need to use a proxy server, you probably don't... and should remove the value and go back to trouble shooting the original problem you had. Commented Mar 2, 2016 at 17:31
  • Ok thank you for the link I was able to remove the proxy, I definitely did not know so removing it was a good choice, when I check it now says null for that. But back to npm install through2-map I now get the error above. Commented Mar 2, 2016 at 17:58

1 Answer 1

1

Your NPM registry is not set to https://registry.npmjs.org anymore:

npm set registry https://registry.npmjs.org
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.