help icon indicating copy to clipboard operation
help copied to clipboard

Node.Js module installation issue

Open seemadas123 opened this issue 8 years ago • 2 comments

  • Node.js Version: 8.11.3
  • OS:Windows 10 (64 bit)
  • Scope (install, code, runtime, meta, other?): install
  • Module (and version) (if relevant): none of the modules are getting installed

I'm unable to install node modules from Node.Js command prompt window. Tried to install excel, mysql npm install excel npm install mysql

Getting FetchError: request to https://registry.npmjs.org/excel failed, reason: connect ECONNREFUSED 104.18.94.96:443

Have attached the log file for reference. I tried to change proxy in .npmsrc file but still no luck. So is the IP address shown here in attached log file is from NodeJs server? And do you think access to this ip is blocking?

NodeJsError.txt

Can anyone please help me how to resolve this issue.

seemadas123 avatar Jul 05 '18 12:07 seemadas123

😄 No you don't want to install npm packages in there, that's an excellent place for running code like your in the browser console, like to test a quick function, however you want to be in the command prompt window, not the node command prompt


<package> was for example, but you want something like npm install excel and you should be good to go. Im gonna close issue, but if your still having problems reopen & we will continue from there. 👍 screen shot 2018-07-06 at 7 22 19 pm

Knighton910 avatar Jul 07 '18 02:07 Knighton910

@seemadas123 : You mention ".npmsrc' - hopefully that was just a typo, but the configuration file name should be '.npmrc' (no 's'). However, if you have no other configuration settings, and rather than putting that file in the wrong place, you might just prefer to configure your proxy setting via HTTPS_PROXY environment variable?

shellberg avatar Jul 09 '18 11:07 shellberg