Priority: 4 - Normal
Affects Version/s: 6.15.0
Fix Version/s: 7.12.5
npm agent version 6.12.0
Here's a scenario where npm will cache and serve only the first version of external dependencies, even if the later package requires higher versions of the same dependencies.
Steps to reproduce:
1) Connect npm agent with artifactory(virtual repo).
2) Install these two appdynamics packages:
npm i firstname.lastname@example.org
npm i email@example.com
firstname.lastname@example.org has the following external dependencies:
email@example.com has the following external dependencies:
But if you go to the npm-remote-cache/_external directory you will only see the following dependencies cached:
libagent-napi 4.5.23 but 4.5.17 is missing
appdynamics-native 4.5.17 but 4.5.22 is missing
appdynamics-protobuf 4.5.17 but 4.5.22 is missing
appdynamics-zmq 4.5.17 but 4.5.22 is missing
The conclusion is that artifactory is still serving older dependencies for the first npm package @4.5.17, even if the later versions are required in the JSON file of the @4.5.22 package.