Error in adduser in a new installation

143 views
Skip to first unread message

Jirong Hu

unread,
Oct 19, 2015, 8:41:14 PM10/19/15
to nodejs
I setup npm repo in a newly installed local Artifactory:https://www.jfrog.com/confluence/display/RTF/Npm+Repositories. Now can't adduser to npm.

C:\OTPPB2015\Workspace\JavaScript\scapegoat>npm adduser
Username: huj
Password:
Email: (this IS public) Jiro...@otpp.com
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Tools\\nodejs\\node.exe" "C:\\Tools\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
"adduser"
npm ERR! node v4.1.1
npm ERR! npm  v2.14.4
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! syscall connect

npm ERR! Error: connect ECONNREFUSED 127.0.0.1:80
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:80]
npm ERR!   code: 'ECONNREFUSED',
npm ERR!   errno: 'ECONNREFUSED',
npm ERR!   syscall: 'connect',
npm ERR!   address: '127.0.0.1',
npm ERR!   port: 80 }
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:\OTPPB2015\Workspace\JavaScript\scapegoat\npm-debug.log

C:\OTPPB2015\Workspace\JavaScript\scapegoat>node -v
v4.1.1

C:\OTPPB2015\Workspace\JavaScript\scapegoat>npm -v
2.14.4

C:\OTPPB2015\Workspace\JavaScript\scapegoat>

C:\OTPPB2015\Workspace\JavaScript\scapegoat>npm config list
; cli configs
user-agent = "npm/2.14.4 node/v4.1.1 win32 x64"

; userconfig C:\Users\huj\.npmrc
"_auth = "`echo\"=admin:password`"
ca = ""
init.author.email = "Jiro...@otpp.com"

; builtin config undefined
prefix = "C:\\Users\\huj\\AppData\\Roaming\\npm"

; node bin location = C:\Tools\nodejs\node.exe
; cwd = C:\OTPPB2015\Workspace\JavaScript\scapegoat
; HOME = C:\Users\huj
; 'npm config ls -l' to show all defaults.


C:\OTPPB2015\Workspace\JavaScript\scapegoat>

Aria Stewart

unread,
Oct 19, 2015, 9:36:41 PM10/19/15
to nod...@googlegroups.com
>
> Email: (this IS public) Jiro...@otpp.com
> npm ERR! Windows_NT 6.1.7601
> npm ERR! argv "C:\\Tools\\nodejs\\node.exe" "C:\\Tools\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
> "adduser"
> npm ERR! node v4.1.1
> npm ERR! npm v2.14.4
> npm ERR! code ECONNREFUSED
> npm ERR! errno ECONNREFUSED
> npm ERR! syscall connect
>
> npm ERR! Error: connect ECONNREFUSED 127.0.0.1:80
> 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:80]
> npm ERR! code: 'ECONNREFUSED',
> npm ERR! errno: 'ECONNREFUSED',
> npm ERR! syscall: 'connect',
> npm ERR! address: '127.0.0.1',
> npm ERR! port: 80 }
> npm ERR!

Something is directing the connection to go via localhost on port 80 -- but either that's firewalled or nothing is listening. Setting a proxy or the registry URL would do this, or something on your network making DNS redirect to localhost (common for blocking)

Aria
Reply all
Reply to author
Forward
0 new messages