registry = "https://registry.npmjs.org/"
adduser command runs in a scope of a registry. Often when you try to use it it tells you that your username doesn't exist, or user was incorrect because you were verifying against a server that is specified by registry parameter. Without running adduser command often your environment will pickup user credentials that are specified by your systeadmins and are related to a registry that is specific for the organization. That's why when you run following command w/o running ever adduser it often displays username:
If you run adduser command in a directory that has registry set to a different location your result will be different:
It is worth noticing that adduser command doesn't add any lines to local .npmrc file. File will only contain registry entry.
No comments:
Post a Comment