Global and built-in npmrc configurations may exist for each user. Therefore, do not worry about whether the .npmrc file is in your home directory. userconfig may or may not exist. You can check the documentation in the npm configuration files.
userconfig is not created for all users. To check if there is a user config and its location, you can:
npm config ls -l | grep config
My output is output as
; cli configs ; userconfig /home/ubuntu/.npmrc globalconfig = "/data/storage/node-v0.8.8-linux-x64/etc/npmrc" userconfig = "/home/ubuntu/.npmrc"
A global npmrc exists where npm is installed. And the user has his own. The userconfig file takes precedence over the global configuration when searching for keys. But if it is absent, globalconfig is used.
user568109
source share