Splunk AppDynamics

[NodeJS] Installing AppDynamics agent sub-dependencies NPM from another repository

CommunityUser
Splunk Employee
Splunk Employee

Hi there,

I have a host which only has access to the npm default registry (i.e., it's not open to the Internet).

During the `npm install` I get error while fetching appdynamics sub-dependencies:

```

"dependencies": {
},
```
 
It clearly happens because they are told to be fetched from `packages.appdynamics.com` domain. Is there a way to tell the `appdynamics` lib to download its dependencies from another repository (for example, my own artifactory where I could manually upload those)?
 
Thanks in advance,
- Gabriel Saldanha (@gcrsaldanha)
Labels (1)
Tags (1)
0 Karma
1 Solution

Kyle_Furlong
Contributor

Hi Gabriel,

The best way to accomplish an offline install is to package up an archive of the package folders, then simply transport them from the node_modules folder on the build machine to the node_modules folder on your app server.

There's one tricky bit which is that the npm user-agent on the build machine needs to match the one on your target server. You can ensure this by using this pair of commands:

  • npm config get user-agent
  • npm config set user-agent

Please let me know if you have any issues with this workflow.

Regards,

Kyle

View solution in original post

Kyle_Furlong
Contributor

Hi Gabriel,

The best way to accomplish an offline install is to package up an archive of the package folders, then simply transport them from the node_modules folder on the build machine to the node_modules folder on your app server.

There's one tricky bit which is that the npm user-agent on the build machine needs to match the one on your target server. You can ensure this by using this pair of commands:

  • npm config get user-agent
  • npm config set user-agent

Please let me know if you have any issues with this workflow.

Regards,

Kyle

CommunityUser
Splunk Employee
Splunk Employee

Thanks for the clear answer, Kyle.

I'll keep you posted if it works!

Cheers,

- Gabriel Saldanha (@gcrsaldanha)

0 Karma
Get Updates on the Splunk Community!

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud? Learn how unique features like ...

Leverage Cisco Talos Threat Intelligence Across Splunk Security Products

Leverage Cisco Talos Threat Intelligence Across Splunk Security Products   Security Edition   Have you ...

What’s New in Splunk Enterprise 9.4: Tools for Digital Resilience

What’s New in Splunk Enterprise 9.4: Tools for Digital Resilience Tune in to What’s New in Splunk Enterprise ...