npm install -g creating folder called Password: everytime #3922

Closed
ravidsrk opened this Issue Sep 21, 2013 · 7 comments

Projects

None yet

3 participants

@ravidsrk

Here is the commands i used

➜  code  npm ls
/Users/ravindrakumar/code
└── (empty)

➜  code  npm ls -g


➜  code  npm install coffee-script
npm http GET https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/coffee-script
coffee-script@1.6.3 node_modules/coffee-script
➜  code  npm rm coffee-script
unbuild coffee-script@1.6.3
➜  code  npm install -g coffee-script
npm http GET https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/coffee-script
/Users/ravindrakumar/code/Password:/usr/local/bin/coffee -> /Users/ravindrakumar/code/Password:/usr/local/lib/node_modules/coffee-script/bin/coffee
/Users/ravindrakumar/code/Password:/usr/local/bin/cake -> /Users/ravindrakumar/code/Password:/usr/local/lib/node_modules/coffee-script/bin/cake
coffee-script@1.6.3 /Users/ravindrakumar/code/Password:/usr/local/lib/node_modules/coffee-script
➜  code  npm -g ls
/Users/ravindrakumar/code/Password:/usr/local/lib
└── coffee-script@1.6.3

➜  code  ls Password:
usr
➜  code  ls Password:/usr
local
➜  code  ls Password:/usr/local
bin lib
➜  code  ls Password:/usr/local/bin
cake   coffee
➜  code  ls Password:/usr/local/lib
node_modules
➜  code  ls Password:/usr/local/lib/node_modules
coffee-script
➜  code  rm -rf Password:
➜  code  npm -g ls


➜  code

I tried completely removing the node and installed again.still i am having same issue.

@iamsteadman

Still an issue. Needs looking into ASAP as I can't install the Node.js module I need.

@ravidsrk

I got it fixed by changes global npm configuration

local git:(master) ✗ npm config ls -l | grep config
; cli configs
; globalconfig /usr/local/etc/npmrc
; builtin config undefined
globalconfig = "/usr/local/etc/npmrc"
userconfig = "/Users/ravindrakumar/.npmrc"local git:(master) ✗ cat /usr/local/etc/npmrc
prefix = Password:/usr/local

I editted npmrc now its working properly
@ravidsrk ravidsrk closed this Sep 25, 2013
@dgtlmonk

what's inside your .npmrc? is it

prefix = Password:/usr/local

?

@ravidsrk

Yes, then i replaced with "/usr/local" then everything started working normally

@dgtlmonk

Works for me too! my .npmrc is

prefix=/usr/local

NOT

prefix=Password:/usr/local

@ravidsrk

No npmrc in
/usr/local/etc/npmrc

@dgtlmonk

Thanks! It works for me too

cat ~/.npmrc
prefix=/usr/local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment