Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Issue while installing express using npm #4658

Closed
munavar opened this issue Feb 12, 2014 · 2 comments
Closed

Issue while installing express using npm #4658

munavar opened this issue Feb 12, 2014 · 2 comments

Comments

@munavar
Copy link

munavar commented Feb 12, 2014

I have problem installing express using npm in windows xp, below is the error log,

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   '-g',
1 verbose cli   'express' ]
2 info using npm@1.3.24
3 info using node@v0.10.25
4 verbose node symlink C:\Program Files\nodejs\\node.exe
5 verbose cache add [ 'express', null ]
6 verbose cache add name=undefined spec="express" args=["express",null]
7 verbose parsed url { protocol: null,
7 verbose parsed url   slashes: null,
7 verbose parsed url   auth: null,
7 verbose parsed url   host: null,
7 verbose parsed url   port: null,
7 verbose parsed url   hostname: null,
7 verbose parsed url   hash: null,
7 verbose parsed url   search: null,
7 verbose parsed url   query: null,
7 verbose parsed url   pathname: 'express',
7 verbose parsed url   path: 'express',
7 verbose parsed url   href: 'express' }
8 silly lockFile f3c62de4-express express
9 verbose lock express C:\Documents and Settings\munavarh\Application Data\npm-cache\f3c62de4-express.lock
10 silly lockFile f3c62de4-express express
11 silly lockFile f3c62de4-express express
12 verbose addNamed [ 'express', '' ]
13 verbose addNamed [ null, '*' ]
14 silly lockFile 64a534c1-express express@
15 verbose lock express@ C:\Documents and Settings\munavarh\Application Data\npm-cache\64a534c1-express.lock
16 silly addNameRange { name: 'express', range: '*', hasData: false }
17 verbose url raw express
18 verbose url resolving [ 'http://registry.npmjs.org/', './express' ]
19 verbose url resolved http://registry.npmjs.org/express
20 info trying registry request attempt 1 at 17:25:28
21 http GET http://registry.npmjs.org/express
22 http 407 http://registry.npmjs.org/express
23 verbose bad json <HTML><HEAD>
23 verbose bad json <TITLE>Access Denied</TITLE>
23 verbose bad json </HEAD>
23 verbose bad json <BODY>
23 verbose bad json <FONT face="Helvetica">
23 verbose bad json <big><strong></strong></big><BR>
23 verbose bad json </FONT>
23 verbose bad json <blockquote>
23 verbose bad json <TABLE border=0 cellPadding=1 width="80%">
23 verbose bad json <TR><TD>
23 verbose bad json <FONT face="Helvetica">
23 verbose bad json <big>Access Denied (authentication_failed)</big>
23 verbose bad json <BR>
23 verbose bad json <BR>
23 verbose bad json </FONT>
23 verbose bad json </TD></TR>
23 verbose bad json <TR><TD>
23 verbose bad json <FONT face="Helvetica">
23 verbose bad json Your credentials could not be authenticated: "". You will not be permitted access until your credentials can be verified.
23 verbose bad json </FONT>
23 verbose bad json </TD></TR>
23 verbose bad json <TR><TD>
23 verbose bad json <FONT face="Helvetica">
23 verbose bad json This is typically caused by an incorrect username and/or password, but could also be caused by network problems.
23 verbose bad json </FONT>
23 verbose bad json </TD></TR>
23 verbose bad json <TR><TD>
23 verbose bad json <FONT face="Helvetica" SIZE=2>
23 verbose bad json <BR>
23 verbose bad json For assistance, contact your IT support team.
23 verbose bad json </FONT>
23 verbose bad json </TD></TR>
23 verbose bad json </TABLE>
23 verbose bad json </blockquote>
23 verbose bad json </FONT>
23 verbose bad json </BODY></HTML>
24 error registry error parsing json
25 silly registry.get cb [ 407,
25 silly registry.get   { 'proxy-authenticate': 'NEGOTIATE, NTLM',
25 silly registry.get     'cache-control': 'no-cache',
25 silly registry.get     pragma: 'no-cache',
25 silly registry.get     'content-type': 'text/html; charset=utf-8',
25 silly registry.get     'proxy-connection': 'close',
25 silly registry.get     'set-cookie': [ 'BCSI-CS-AAF3A795BFC03634=2; Path=/' ],
25 silly registry.get     connection: 'close',
25 silly registry.get     'content-length': '784' } ]
26 silly lockFile 64a534c1-express express@
27 silly lockFile 64a534c1-express express@
28 error SyntaxError: Unexpected token <
28 error <HTML><HEAD>
28 error <TITLE>Access Denied</TITLE>
28 error </HEAD>
28 error <BODY>
28 error <FONT face="Helvetica">
28 error <big><strong></strong></big><BR>
28 error </FONT>
28 error <blockquote>
28 error <TABLE border=0 cellPadding=1 width="80%">
28 error <TR><TD>
28 error <FONT face="Helvetica">
28 error <big>Access Denied (authentication_failed)</big>
28 error <BR>
28 error <BR>
28 error </FONT>
28 error </TD></TR>
28 error <TR><TD>
28 error <FONT face="Helvetica">
28 error Your credentials could not be authenticated: "". You will not be permitted access until your credentials can be verified.
28 error </FONT>
28 error </TD></TR>
28 error <TR><TD>
28 error <FONT face="Helvetica">
28 error This is typically caused by an incorrect username and/or password, but could also be caused by network problems.
28 error </FONT>
28 error </TD></TR>
28 error <TR><TD>
28 error <FONT face="Helvetica" SIZE=2>
28 error <BR>
28 error For assistance, contact your IT support team.
28 error </FONT>
28 error </TD></TR>
28 error </TABLE>
28 error </blockquote>
28 error </FONT>
28 error </BODY></HTML>
28 error
28 error     at Object.parse (native)
28 error     at RegClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:241:23)
28 error     at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:123:22)
28 error     at Request.EventEmitter.emit (events.js:98:17)
28 error     at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:893:14)
28 error     at Request.EventEmitter.emit (events.js:117:20)
28 error     at IncomingMessage.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:844:12)
28 error     at IncomingMessage.EventEmitter.emit (events.js:117:20)
28 error     at _stream_readable.js:920:16
28 error     at process._tickCallback (node.js:415:13)
29 error If you need help, you may report this *entire* log,
29 error including the npm and node versions, at:
29 error     <http://github.com/isaacs/npm/issues>
30 error System Windows_NT 5.1.2600
31 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "express"
32 error cwd C:\Documents and Settings\munavarh
33 error node -v v0.10.25
34 error npm -v 1.3.24
35 error type unexpected_token
36 verbose exit [ 1, true ]

Please suggest

@smikes
Copy link
Contributor

smikes commented Nov 26, 2014

Is this still a problem for you?

It looks like you are running into a proxy which requires you to log in. You can often tell npm about your proxy by setting the http_proxy configuration parameter:

npm config set http_proxy http://user:password@host:port/

You may need to contact your local IT department to get the correct form of proxy URL for your site.

We are trying to clean up older npm issues, so if we don't hear back from you within a week, we will close this issue. (Don't worry -- you can always come back again and re-open it!)

Thanks!

@othiym23
Copy link
Contributor

othiym23 commented Dec 5, 2014

Closing as abandoned. Open a new issue if you encounter this behavior again!

@othiym23 othiym23 closed this as completed Dec 5, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants