On Wednesday, May 29, 2013 11:40:15 AM UTC+2, Conor Restall wrote:
>
> Hey,
>  
> Pretty much complete beginner to nodejs and NPM here.  I have been trying 
> to get NPM working but every time I try to run any NPM command I get a 
> horrible error message.
>  
> Microsoft Windows [Version 6.1.7601]
> Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
> C:\Users\restallc>node --version
> v0.10.8
> C:\Users\restallc>npm -v
> 1.2.23
> C:\Users\restallc>npm list
> URIError: URI malformed
>     at decodeURIComponent (native)
>     at Url.parse (url.js:173:21)
>     at Object.urlParse [as parse] (url.js:112:5)
>     at Object.validateUrl [as validate] 
> (C:\Users\restallc\nodejs\node_modules\n
> pm\node_modules\nopt\lib\nopt.js:156:13)
>     at validate 
> (C:\Users\restallc\nodejs\node_modules\npm\node_modules\nopt\lib
> \nopt.js:204:24)
>     at validate 
> (C:\Users\restallc\nodejs\node_modules\npm\node_modules\nopt\lib
> \nopt.js:171:11)
>     at 
> C:\Users\restallc\nodejs\node_modules\npm\node_modules\nopt\lib\nopt.js:1
> 01:12
>     at Array.map (native)
>     at 
> C:\Users\restallc\nodejs\node_modules\npm\node_modules\nopt\lib\nopt.js:6
> 7:15
>     at Array.forEach (native)
>
> C:\Users\restallc\nodejs\node_modules\npm\lib\utils\error-handler.js:49
>   var doExit = npm.config.get("_exit")
>                           ^
> TypeError: Object #<Object> has no method 'get'
>     at exit 
> (C:\Users\restallc\nodejs\node_modules\npm\lib\utils\error-handler.j
> s:49:27)
>     at process.errorHandler 
> (C:\Users\restallc\nodejs\node_modules\npm\lib\utils
> \error-handler.js:295:3)
>     at process.EventEmitter.emit (events.js:95:17)
>     at process._fatalException (node.js:272:26)
>  
> I have read that it could be to do with proxy settings but I receive the 
> same error message when I try to set the proxy up
>  
> C:\Users\restallc>npm config set proxy http://proxy.company.com:8080
> URIError: URI malformed
>     at decodeURIComponent (native)
>     at Url.parse (url.js:173:21)
>     at Object.urlParse [as parse] (url.js:112:5)
>     at Object.validateUrl [as validate] 
> (C:\Users\restallc\nodejs\node_modules\n
> pm\node_modules\nopt\lib\nopt.js:156:13)
>     at validate 
> (C:\Users\restallc\nodejs\node_modules\npm\node_modules\nopt\lib
> \nopt.js:204:24)
>     at validate 
> (C:\Users\restallc\nodejs\node_modules\npm\node_modules\nopt\lib
> \nopt.js:171:11)
>     at 
> C:\Users\restallc\nodejs\node_modules\npm\node_modules\nopt\lib\nopt.js:1
> 01:12
>     at Array.map (native)
>     at 
> C:\Users\restallc\nodejs\node_modules\npm\node_modules\nopt\lib\nopt.js:6
> 7:15
>     at Array.forEach (native)
>
> C:\Users\restallc\nodejs\node_modules\npm\lib\utils\error-handler.js:49
>   var doExit = npm.config.get("_exit")
>                           ^
> TypeError: Object #<Object> has no method 'get'
>     at exit 
> (C:\Users\restallc\nodejs\node_modules\npm\lib\utils\error-handler.j
> s:49:27)
>     at process.errorHandler 
> (C:\Users\restallc\nodejs\node_modules\npm\lib\utils
> \error-handler.js:295:3)
>     at process.EventEmitter.emit (events.js:95:17)
>     at process._fatalException (node.js:272:26)
>  
> I have tried using the MSI installer and running downloading it all and 
> running it manually both gave me the same results.  I have checked my 
> system variables and they all look okay.
>  
> Does anybody have any ideas at what could be causing my issue?
>  
> Thanks
>  
> Conor
>

Can you post the output of `npm config ls -l` ?

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to