How to download a tarball file for the Node agent.
npm view @contrast/agent dist.tarball
- That command will generate a URL you can paste in a browser to download the tgz file of the <latest> Node.js agent
❯ npm view @contrast/agent dist.tarball
If you need to get the tarball without having
npm installed, you can fetch the package information using
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 https://registry.npmjs.org/PACKAGE-NAME/ \ | jq '.versions[."dist-tags".latest].dist.tarball'
❯ curl https://registry.npmjs.org/@contrast/agent/ | jq '.versions[."dist-tags".latest].dist.tarball'