'how to set diferent credentials to install or publish npm packages
we have 2 private packages into, one pepending on another. let say that A depends on B.
on the A repository we included a .npmrc file with readonly credentials. In this case environment without a company npm user (third part employees or pipelines) are able to install the B dependency.
However we are not able to publish updates do the A package becaouse the .npmrc credential overrides the current npm logged user and npm throws an error.:
You may not perform that action with these credentials.
We need to delete the .npmrc file every time before publish the package.
How can we specify a credentials to install dependencies and use the current logged user to publish.
important, both packages belongs to the same company.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
