How to get a tarball from npm for the Node agent

  • Updated


How to download a tarball file for the Node agent.


  1. Run npm view @contrast/agent dist.tarball
  2. That command will generate a URL you can paste in a browser to download the tgz file of the <latest> Node.js agent

    For example:
    ❯ npm view @contrast/agent dist.tarball


Alternate approach

If you need to get the tarball without having npm installed, you can fetch the package information using curl and jq to get the right information from the JSON. This is for instance useful if you're building a Docker container that requires one npm package, and you don't want to install npm just for that.

curl \ | jq '.versions[."dist-tags".latest].dist.tarball'


For example:

❯ curl | jq '.versions[."dist-tags".latest].dist.tarball'



Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request