You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The background of this problem is that I have A project whose direct dependency on A is A ', and another direct dependency on B that depends on C is C '. After I set the corresponding cache to A and C in the.npmrc file, the indirect dependency on C will not take effect and its address will be the global address
darcyclarke
changed the title
[RRFC] The.npmrc file should be valid for any dependency, whether direct or indirect
[RRFC] The .npmrc file should be valid for any dependency, whether direct or indirect
Apr 27, 2022
It sounds like you might be trying to reference multiple packages of the same name across different registries(?) If that is indeed the case, you should likely be defining the registries as scopes & then would be able to reference the package in your code/package.json accordingly (ref. https://docs.npmjs.com/cli/v8/using-npm/scope). Let me know if you're talking about something else though.
Motivation
The background of this problem is that I have A project whose direct dependency on A is A ', and another direct dependency on B that depends on C is C '. After I set the corresponding cache to A and C in the.npmrc file, the indirect dependency on C will not take effect and its address will be the global address
Example
The directly dependent address of A is the correct A ', but the address of indirect C is the global registry
How
Current Behaviour
The setting of indirect dependencies is invalid in the '.npmrc' file
Desired Behaviour
Both direct and indirect dependencies should be downloaded correctly according to the configuration
References
The text was updated successfully, but these errors were encountered: