$NPM_USERCONFIG being ignored #4547

Zearin opened this Issue Jan 25, 2014 · 2 comments

1 participant


Hey. :)

When programs allow, I prefer use an environment variable to specify a config file, and then use the config file to manage the program. For most of my experience with npm, this has worked fine.

I’m not sure when this started happening, but I just found out the following:


$ npm config get userconfig 

Running on OS X (10.9 “Mavericks”), with the following installation (via Homebrew):

$ npm --version

$ node --version

Still getting this error.

Current stats:

$ npm --version

$ node --version

Never mind. I’m an idiot.

I had set the env variable $NPM_USERCONFIG, but it needed to be $NPM_CONFIG_USERCONFIG.

May The Source™ Be With You!

@Zearin Zearin closed this Jun 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment