Splunk AppDynamics

Update Node.JS agent package to declare dependencies?

Drew__Gingerich
New Member

Hi there,

Is it possible for the AppDynamics Node.JS packages to be updated to fully declare their dependencies?

We use Yarn to manage Node.JS packages. Yarn is more strict than npm about package dependencies, and trips up when installing appdynamics version 24.10.0 because several sub-packages don't declare all of their dependencies. We can work around this by using package extensions in our Yarn config file (.yarnrc.yml):

packageExtensions:
    "appdynamics-protobuf@*":
      dependencies:
        "https-proxy-agent": "*"
        "fs-extra": "*"
        "tar": "*"
    "appdynamics-libagent-napi@*":
      dependencies:
        "fs-extra": "*"
        "tar": "*"
    "appdynamics-native@*":
      dependencies:
        "https-proxy-agent": "*"
        "fs-extra": "*"
        "tar": "*"

This is a point of friction, though, because it must be done in every repository.

Examining the AppDynamics packages, I see they use a preinstall script similar to the following:

npm install https-proxy-agent@5.0.0 fs-extra@2.0.0 tar@5.0.11 &&  node install.js appdynamics-libagent-napi-native appdynamics-libagent-napi 10391.0.0

This seems like the source of the undeclared package dependencies.

As a side effect of declaring the dependencies, I believe the first command (npm install) could be removed from the preinstall script. This would also remove the reliance on npm, which will play better with non-npm projects: many projects don't use npm (e.g. we're using Yarn), and relying on npm in the preinstall script can cause issues that are difficult to troubleshoot.

Labels (1)
0 Karma

Drew__Gingerich
New Member

I haven't found any new information, so I'll contact support. Thanks!

0 Karma

iamryan
Community Manager
Community Manager

Hi @Drew .Gingerich,

Thanks for asking your question on the Community. It's been a few days with no reply from the Community. Did you find any additional information or a solution you can share here?

If you still need help, you can contact AppDynamics Support: How do I open a case with AppDynamics Support? 

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...