Unable to install browser-sync on windows 7 - browser-sync

I am trying to install browser-sync on windows 7 post installing NodeJs. But I am getting the below error:
C:\Users\nikhil.wagh>npm install -g browser-sync
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "browser-sync"
npm ERR! node v4.4.5
npm ERR! npm v2.15.5
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! syscall connect
npm ERR! Error: connect ECONNREFUSED 23.235.39.162:443
npm ERR! at Object.exports._errnoException (util.js:870:11)
npm ERR! at exports._exceptionWithHostPort (util.js:893:20)
npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1061:14)
npm ERR! { [Error: connect ECONNREFUSED 23.235.39.162:443]
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect',
npm ERR! address: '23.235.39.162',
npm ERR! port: 443 }
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! C:\Users\nikhil.wagh\npm-debug.log

You might have a problem with your Environment variables:-
You have a problem with your environment variables:
Control panel -> System -> Advanced System Settings -> Advanced -> Environment variables.
In environment variables search PATH variable. PATH variable must contains the following paths:
C:\Users\[your username]\AppData\Roaming\npm
C:\Program Files (x86)\nodejs\
Check you should have 2 paths in PATH variable and
C:\Users\[your username]\AppData\Roaming\npm is beforeC:\Program Files (x86)\nodejs\
Source:-npm installation problem in windows

Related

Unable to install any npm package on Windows 7 connected to Internet via wifi

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?

Proxy Error while installing express using npm

When I am trying to install express by npm getting below error.
D:\testing node>npm install express -l
npm WARN package.json testnode#1.0.0 No description
npm WARN package.json testnode#1.0.0 No repository field.
npm WARN package.json testnode#1.0.0 No README data
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "express" "-l"
npm ERR! node v4.0.0
npm ERR! npm v2.14.2
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! syscall connect
npm ERR! Error: connect ECONNREFUSED 103.245.222.162:443
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 103.245.222.162:443]
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect',
npm ERR! address: '103.245.222.162',
npm ERR! port: 443,
npm ERR! parent: 'testnode' }
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! D:\testing node\npm-debug.log
Although I have removed proxy too but even after that getting the same
Tried running npm as administrative
Change your proxy setting using
set http_proxy=http://hostname:port

Grunt cli install error for windows

I am trying to install Grunt cli for windows using command "npm install -g grunt-cli" getting bellow mentioned error message, please suggest me on this.
**
npm ERR! Error: connect ECONNREFUSED
npm ERR! at errnoException (net.js:904:11)
npm ERR! at Object.afterConnect [as oncomplete] (net.js:895: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 Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "grunt-cli"
npm ERR! cwd C:\Users\M1022339
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
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: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\M1022339\npm-debug.log
npm ERR! not ok code 0
**
Thanks,
Dhananjaya
solved:
we need to set proxy server url for command window.
set HTTP_PROXY=http : // UserName:password#proxy_server_IP:port
for example : set HTTP_PROXY= http : // xyz:Abc123#ip:port
after setting run "npm install -g grunt-cli" command

node js express app in webstorm error

juns-MacBook-Pro:~ junxie$ npm install -g express-generator
npm ERR! Error: connect ECONNREFUSED
npm ERR! at errnoException (net.js:904:11)
npm ERR! at Object.afterConnect [as oncomplete] (net.js:895:19)
npm ERR! { [Error: connect ECONNREFUSED]
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect',
npm ERR! parent: 'express-generator' }
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 Darwin 14.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "express-generator"
npm ERR! cwd /Users/junxie
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
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:904:11)
npm ERR! stack at Object.afterConnect [as oncomplete] (net.js:895:19)
npm ERR! not ok code 0
I just follow video tutorial to setup node js express configuration, and got this kind of problem, I have tried sudu chown -R 'myname' ~/.npm and then input my password, and then input
npm install -g express-generator, and then I got this error

cannot install Phonegap on Win7

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?

Resources