# APM agent

**URL:** <https://discuss.elastic.co/t/apm-agent/161251>\
**Category:** APM\
**Created:** [December 18, 2018, 6:53am UTC](https://discuss.elastic.co/t/apm-agent/161251 "2018-12-18T06:53:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![roopeshetty](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@roopeshetty](https://discuss.elastic.co/u/roopeshetty)\
**Post date:** [December 18, 2018, 6:53am UTC](https://discuss.elastic.co/t/apm-agent/161251/1 "2018-12-18T06:53:29Z")

</div>

Hi guys.. I just downloaded and installed APM server and its running successfully. But i am unable to install the APM agent as i am not finding the APM agent setup files. Can someone one please guide from where can i download this APM agent setup files.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 18, 2018, 6:56am UTC](https://discuss.elastic.co/t/apm-agent/161251/2 "2018-12-18T06:56:12Z")

</div>

You need to edit your code to invoke the agents, they aren't separate packages like the server. See [https://www.elastic.co/guide/en/apm/agent/index.html](https://www.elastic.co/guide/en/apm/agent/index.html) for whatever language you want.

---

<div class="post-metadata">

**Author:** ![roopeshetty](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@roopeshetty](https://discuss.elastic.co/u/roopeshetty)\
**Post date:** [December 18, 2018, 7:15am UTC](https://discuss.elastic.co/t/apm-agent/161251/3 "2018-12-18T07:15:18Z")

</div>

HI Warkolm,

document says i need to run this command "npm install elastic-apm-js-base --save" . But to run this command i should have this file " elastic-apm-js-base" deployed right?. From where should i get this file?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 18, 2018, 8:10am UTC](https://discuss.elastic.co/t/apm-agent/161251/4 "2018-12-18T08:10:12Z")

</div>

You download it from the npm server, I don't know if there is a way to do an offline install sorry.

---

<div class="post-metadata">

**Author:** ![wa7son](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wa7son/32/21259_2.png) [@wa7son](https://discuss.elastic.co/u/wa7son)\
**Post date:** [December 18, 2018, 8:35am UTC](https://discuss.elastic.co/t/apm-agent/161251/5 "2018-12-18T08:35:23Z")

</div>

You need to have npm installed (which comes automatically with Node.js) on the machine where you run the `npm install elastic-apm-js-base --save` command (which you run inside the base directory of your website source code). This will add the `elastic-apm-js-base` module as a dependency to your website in its `package.json` file.

But it sounds to me like you don't have a `package.json` file already?

---

<div class="post-metadata">

**Author:** ![Hamidreza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamidreza/32/21369_2.png) [@Hamidreza](https://discuss.elastic.co/u/Hamidreza)\
**Post date:** [December 18, 2018, 9:07am UTC](https://discuss.elastic.co/t/apm-agent/161251/6 "2018-12-18T09:07:49Z")

</div>

Hi,

Thanks for reaching out.

We recommend to use npm to install our JavaScript agent. However, you can also download the agent from [unpkg.com](https://unpkg.com/elastic-apm-js-base/dist/bundles/elastic-apm-js-base.umd.min.js).  
Please note that [unpkg.com](http://unpkg.com) is an unofficial service providing a way to download npm packages.

Furthermore, we're currently working to provide the final JavaScript bundle through our [GitHub releases](https://github.com/elastic/apm-agent-js-base/releases) which will be the official way to download the bundles going forward.

Cheers,  
Hamid

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 8, 2019, 5:07am UTC](https://discuss.elastic.co/t/apm-agent/161251/7 "2019-01-08T05:07:54Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
