<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Update Node.JS agent package to declare dependencies? in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Update-Node-JS-agent-package-to-declare-dependencies/m-p/731203#M7477</link>
    <description>&lt;P&gt;I haven't found any new information, so I'll contact support. Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 12 Feb 2025 17:37:01 GMT</pubDate>
    <dc:creator>Drew__Gingerich</dc:creator>
    <dc:date>2025-02-12T17:37:01Z</dc:date>
    <item>
      <title>Update Node.JS agent package to declare dependencies?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Update-Node-JS-agent-package-to-declare-dependencies/m-p/731201#M7475</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Is it possible for the AppDynamics Node.JS packages to be updated to fully declare their dependencies?&lt;/P&gt;&lt;P&gt;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):&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;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": "*"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is a point of friction, though, because it must be done in every repository.&lt;/P&gt;&lt;P&gt;Examining the AppDynamics packages, I see they use a preinstall script similar to the following:&lt;/P&gt;&lt;PRE&gt;npm install https-proxy-agent@5.0.0 fs-extra@2.0.0 tar@5.0.11 &amp;amp;&amp;amp;  node install.js appdynamics-libagent-napi-native appdynamics-libagent-napi 10391.0.0&lt;/PRE&gt;&lt;P&gt;This seems like the source of the undeclared package dependencies.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 18:50:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Update-Node-JS-agent-package-to-declare-dependencies/m-p/731201#M7475</guid>
      <dc:creator>Drew__Gingerich</dc:creator>
      <dc:date>2025-02-06T18:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Update Node.JS agent package to declare dependencies?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Update-Node-JS-agent-package-to-declare-dependencies/m-p/731202#M7476</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/172989"&gt;@Drew .Gingerich&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;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?&lt;BR /&gt;&lt;BR /&gt;If you still need help, you can contact AppDynamics Support:&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/Knowledge-Base/How-do-I-open-a-case-with-AppDynamics-Support/m-p/53966#U53966" class="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;How do I open a case with AppDynamics Support?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 17:34:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Update-Node-JS-agent-package-to-declare-dependencies/m-p/731202#M7476</guid>
      <dc:creator>iamryan</dc:creator>
      <dc:date>2025-02-12T17:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Update Node.JS agent package to declare dependencies?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Update-Node-JS-agent-package-to-declare-dependencies/m-p/731203#M7477</link>
      <description>&lt;P&gt;I haven't found any new information, so I'll contact support. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 17:37:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Update-Node-JS-agent-package-to-declare-dependencies/m-p/731203#M7477</guid>
      <dc:creator>Drew__Gingerich</dc:creator>
      <dc:date>2025-02-12T17:37:01Z</dc:date>
    </item>
  </channel>
</rss>

