# Fail install apm agent output package.json not find

**URL:** <https://discuss.elastic.co/t/fail-install-apm-agent-output-package-json-not-find/104174>\
**Category:** APM\
**Created:** [October 17, 2017, 5:31am UTC](https://discuss.elastic.co/t/fail-install-apm-agent-output-package-json-not-find/104174 "2017-10-17T05:31:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [October 17, 2017, 5:31am UTC](https://discuss.elastic.co/t/fail-install-apm-agent-output-package-json-not-find/104174/1 "2017-10-17T05:31:10Z")

</div>

[root@soc apm-server-6.0.0-rc1-linux-x86\_64]#`npm install elastic-apm --save`  
`npm WARN saveError ENOENT: no such file or directory, open '/opt/elasticsearch-apm/apm-server-6.0.0-rc1-linux-x86_64/package.json'`  
/opt/elasticsearch-apm/apm-server-6.0.0-rc1-linux-x86\_64  
└─┬ elastic-apm@0.3.1  
├── after-all-results@2.0.0  
├── console-log-level@1.4.0  
├── cookie@0.3.1  
├── core-util-is@1.0.2  
├─┬ debug@3.1.0  
│ └── ms@2.0.0  
├── elastic-apm-http-client@4.1.0  
├─┬ end-of-stream@1.4.0  
│ └─┬ once@1.4.0  
│ └── wrappy@1.0.2  
├── fast-safe-stringify@1.2.0  
├─┬ http-headers@3.0.1  
│ └── next-line@1.1.0  
├── https-pem@1.0.4  
├─┬ is-native@1.0.1  
│ ├── is-nil@1.0.1  
│ └── to-source-code@1.0.2  
├── normalize-bool@1.0.0  
├── object-assign@4.1.1  
├─┬ redact-secrets@1.0.0  
│ ├── is-secret@1.1.1  
│ └── traverse@0.6.6  
├─┬ require-in-the-middle@2.1.2  
│ ├── module-details-from-path@1.0.3  
│ └─┬ resolve@1.4.0  
│ └── path-parse@1.0.5  
├── semver@5.4.1  
├── sql-summary@1.0.0  
├─┬ stackman@2.0.1  
│ ├─┬ async-cache@1.1.0  
│ │ └─┬ lru-cache@4.1.1  
│ │ ├── pseudomap@1.0.2  
│ │ └── yallist@2.1.2  
│ ├── debug@2.6.9  
│ ├── error-callsites@1.0.1  
│ ├─┬ load-source-map@1.0.0  
│ │ ├── in-publish@2.0.0  
│ │ └── source-map@0.5.7  
│ └── path-is-absolute@1.0.1  
├─┬ unicode-byte-truncate@1.0.0  
│ ├─┬ is-integer@1.0.7  
│ │ └─┬ is-finite@1.0.2  
│ │ └── number-is-nan@1.0.1  
│ └── unicode-substring@0.1.0  
└── uuid@3.1.0

npm WARN enoent ENOENT: no such file or directory, open '/opt/elasticsearch-apm/apm-server-6.0.0-rc1-linux-x86\_64/package.json'  
npm WARN apm-server-6.0.0-rc1-linux-x86\_64 No description  
npm WARN apm-server-6.0.0-rc1-linux-x86\_64 No repository field.  
npm WARN apm-server-6.0.0-rc1-linux-x86\_64 No README data  
npm WARN apm-server-6.0.0-rc1-linux-x86\_64 No license field.

---

<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:** [October 17, 2017, 7:40pm UTC](https://discuss.elastic.co/t/fail-install-apm-agent-output-package-json-not-find/104174/2 "2017-10-17T19:40:22Z")

</div>

The command "npm install elastic-apm --save" is supposed to be run inside the root dir of the Node.js application that you want to monitor - not inside the apm-server directory.

Each application that you want to monitor needs to have an APM agent installed as a dependency. Besides the APM agents, you must also deploy an APM Server that each agent can connect to. Multiple agents can all use the same APM Server.

---

<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:** [November 7, 2017, 3:40pm UTC](https://discuss.elastic.co/t/fail-install-apm-agent-output-package-json-not-find/104174/3 "2017-11-07T15:40:35Z")

</div>

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