Today I updated the node version by uninstalling the old version. The recent version I installed was 4.5.0 LTS. After the installation, when I try to install a new npm, it doesn't work and gives me the following error
C:\Users\myuser
λ npm install -g yo
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo"
npm ERR! node v0.12.15
npm ERR! npm v2.15.1
npm ERR! code EACCES
npm ERR! errno EACCES
npm ERR! syscall connect
npm ERR! Error: connect EACCES
npm ERR! at exports._errnoException (util.js:746:11)
npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1012:19)
npm ERR! { [Error: connect EACCES] code: 'EACCES', errno: 'EACCES', syscall: 'connect' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\myuser\npm-debug.log
I have tried it using the command line with the Administrator privilege also in the Powershell. Tried to install several other plugins as well. Nothing works. Also switched off the firewall and tried, no luck. Installed the older version of NodeJS, issue is still persisting.
I'm using Windows 10. I checked whether am I behind a proxy, and I am not.
I found the solution for my question.
The issue was my virus guard Kespersky Endpoint Security 10 is blocking the node in my machine.
When I added it to the whitelist, it works perfectly.
Thanks
Related
I am unable to install any npm package like browser-sync, gulp, grunt on my Windows 7 . I am trying to install with Admin user. I connect to net using Wifi(Netgear) where my broadband is a dial-up connection (ADSL). I have not setup any proxy config.please find the log below.
C:\>npm install -g browser-sync
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "browser-sync"
npm ERR! node v4.5.0
npm ERR! npm v2.15.9
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! syscall connect
npm ERR! Error: connect ECONNREFUSED 127.0.0.1:8080
npm ERR! at Object.exports._errnoException (util.js:907:11)
npm ERR! at exports._exceptionWithHostPort (util.js:930:20)
npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1077:14)
npm ERR! { [Error: connect ECONNREFUSED 127.0.0.1:8080]
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect',
npm ERR! address: '127.0.0.1',
npm ERR! port: 8080 }
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'
I am unable to install any npm package like browser-sync.Could you please suggest how to fix this error.
I have already tried set registry to http://registry.npmjs.org/. Could you please suggest how to fix this error. I have already tried running the command "npm install connect" as Administrator and got the same thing. Can anyone help?
I am attempting to learn mean.js through a tutorial.
I have installed node.js, npm, mongodb, grunt, bower, gulp, and yeoman without any errors.
When I try to "yo meanjs" in the terminal (on Mac OS), I enter the directory where I want to install and answer a few questions. I continually get this message:
Error: Command failed: /bin/sh -c cd users/danzeller/mean/vteer && npm install
npm WARN deprecated phantomjs#2.1.7: Package renamed to phantomjs-prebuilt. Please update 'phantomjs' package references to 'phantomjs-prebuilt'
I installed phantomjs-prebuilt according to their website without errors.
I am not sure how to "update the references" as shown in the error message.
Here is the full terminal error:
Running npm install for you....
This may take a couple minutes.
Error: Command failed: /bin/sh -c cd users/danzeller/mean/vteer && npm install
npm WARN deprecated phantomjs#2.1.7: Package renamed to phantomjs-prebuilt. Please update 'phantomjs' package references to 'phantomjs-prebuilt'
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.4.0
npm ERR! npm v3.8.1
npm ERR! path /var/root/.npm/connect-mongo
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir
npm ERR! Error: EACCES: permission denied, mkdir '/var/root/.npm/connect-mongo'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, mkdir '/var/root/.npm/connect-mongo']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/var/root/.npm/connect-mongo',
npm ERR! parent: 'volunteer' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /private/var/root/users/danzeller/mean/vteer/npm-debug.log
at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:475:12)
It seems to want to put the install in the /private/var/root/ folder however, I would like to place in the /users/danzeller/mean/ folder.
I am using
sudo su -
in the terminal window to install this ---- is this incorrect? Does this point to the wrong folder?
Any help would be great since I am new to all this.
Thanks!
Dan
The package owner is in charge to do it, I think.
I had the same issue with Node version 8.1.2(new) and npm version 5.0.3.
After I downgraded Node to V6.11.0(stable) and npm V3.10.10 it fixed my issue.
You can also try to remove your directory "/usr/local/lib/node-modules" and reinstall Node V6.11.0 if first solution will not work for you.
I've tried to run cmd as administrator, to change permissions on nodejs folder in Program Files, to login as Administrator, to runas /norprofile..., even to run command in safe mode. Always the same error when I run "npm install uglify-js".
C:\Users\user123>npm install uglify-js
npm ERR! Error: connect EACCES
npm ERR! at errnoException (net.js:904:11)
npm ERR! at Object.afterConnect [as oncomplete] (net.js:895:19)
npm ERR! { [Error: connect EACCES] code: 'EACCES', errno: 'EACCES', syscall: 'connect' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "uglify-js"
npm ERR! cwd C:\Users\user123
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! syscall connect
npm ERR! code EACCES
npm ERR! errno EACCES
npm ERR! stack Error: connect EACCES
npm ERR! stack at errnoException (net.js:904:11)
npm ERR! stack at Object.afterConnect [as oncomplete] (net.js:895:19)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\user123\npm-debug.log
npm ERR! not ok code 0
C:\Users\user123>
Anybody have an idea how to solve this?
After turn off the kaspersky, it can connect the server to download node modules
As noted above:
The problem was with windows firewall which I was not aware it was turned on. Now I turned it off, and without any problems, npm installed desired package.
References
npm wiki: Troubleshooting
Microsoft C Runtime Library Reference: ErrNo Constants
Microsoft C Runtime Library Reference: Global Variables - errno, _doserrno, _sys, errlist, and_sys_errlist
In my case, I get a similar error but for a Nodejs program that continuously connects to MongoLab (not just installing or updating a module)... so I added a Windows firewall exception specifically for Nodejs, and the host and port my program is connecting to.
I'm running Windows 7, and I'm trying to install Phonegap on my system.
I've installed NodeJS as requested, but whenever I try to install via
c:> npm -g install phonegap
I get this:
C:\>npm install -g phonegap
npm http GET https://registry.npmjs.org/phonegap
npm http GET https://registry.npmjs.org/phonegap
npm http GET https://registry.npmjs.org/phonegap
npm ERR! Error: connect EACCES
npm ERR! at errnoException (net.js:901:11)
npm ERR! at Object.afterConnect [as oncomplete] (net.js:892:19)
npm ERR! { [Error: connect EACCES] code: 'EACCES', errno: 'EACCES', syscall: 'c
onnect' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "phonegap"
npm ERR! cwd C:\
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! syscall connect
npm ERR! code EACCES
npm ERR! errno EACCES
npm ERR! stack Error: connect EACCES
npm ERR! stack at errnoException (net.js:901:11)
npm ERR! stack at Object.afterConnect [as oncomplete] (net.js:892:19)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\npm-debug.log
npm ERR! not ok code 0
I'm running command prompt as an adminstrator, so I know that's not the problem. Any ideas, and failing this does anyone know where I can unzip the .zip file to install PhoneGap manually?
I've been attempting to get an install of SailsJS working for 3 hours now.
I have now created a totally fresh Linux Ubuntu 12.04 64-bit VM and have followed a dozen different tutorials for how to install NodeJS / SailsJS (including the tutorial from within the documentation) ALL to no avail.
The error I am getting is as follows (when I attempt to run sudo npm -g install sails):
npm ERR! Error: connect ECONNREFUSED
npm ERR! at errnoException (net.js:901:11)
npm ERR! at Object.afterConnect [as oncomplete] (net.js:892:19)
npm ERR! { [Error: connect ECONNREFUSED]
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect' }
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! System Linux 3.8.0-29-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "-g" "install" "sails"
npm ERR! cwd /home/asdf/Desktop
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.11
npm ERR! syscall connect
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! stack Error: connect ECONNREFUSED
npm ERR! stack at errnoException (net.js:901:11)
npm ERR! stack at Object.afterConnect [as oncomplete] (net.js:892:19)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/asdf/Desktop/npm-debug.log
npm ERR! not ok code 0
Does anybody have any idea what might be causing me my issues? I've followed the tutorial very precisely and on a totally fresh install of Ubuntu 12.04 and now I'm just pulling my hair out.
that default use proxy http://127.0.0.1.8087
so execute:
npm config set proxy null
npmjs.org has had some downtime issues today. Just wait and try later.