# Dynatrace App Toolkit - ERESOLVE unable to resolve dependency tree

**URL:** <https://community.dynatrace.com/t/dynatrace-app-toolkit-eresolve-unable-to-resolve-dependency-tree/51155>\
**Category:** Developer Q&A Forum\
**Tags:** dynatrace-app-toolkit\
**Created:** [April 10, 2025, 12:43pm UTC](https://community.dynatrace.com/t/dynatrace-app-toolkit-eresolve-unable-to-resolve-dependency-tree/51155 "2025-04-10T12:43:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![giovannialb](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@giovannialb](https://community.dynatrace.com/u/giovannialb)\
**Post date:** [April 10, 2025, 12:43pm UTC](https://community.dynatrace.com/t/dynatrace-app-toolkit-eresolve-unable-to-resolve-dependency-tree/51155/1 "2025-04-10T12:43:31Z")

</div>

Hi devs!

We are trying to download and set up the Dynatrace App Toolkit. We execute the following command to initialize a new app, after downloading the app templates in the target folder:

```auto
npx dt-app@latest create --environment-url https://{environmentid}.apps.dynatrace.com --template-dir .\dt-app-templates-main\templates\default 

```

And the output is the following:

```markup
Error: Installing the dependencies failed.
Please try to run npm install
npm ERR! code ETARGET
npm ERR! notarget No matching version found for <a href="/user/64071">@dynatrace</a>-sdk/client-query@^1.20.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

```

We’ve noticed that, in the **package.json** file of the default template, some npm packages require versions that are not found.

For instance, consider the dependecy: [dt-app-templates/templates/default/package.json at 402fb136c063c3e0ee349088fa472d6a159a4d77 · Dynatrace/dt-app-templates · GitHub](https://github.com/Dynatrace/dt-app-templates/blob/402fb136c063c3e0ee349088fa472d6a159a4d77/templates/default/package.json#L24C1-L25C1)

```auto
    "@dynatrace-sdk/client-query": "^1.20.0",

```

On [www.npmjs.com](http://www.npmjs.com), we see that the latest version is **1.18.1** : [https://www.npmjs.com/package/@dynatrace-sdk/client-query](https://www.npmjs.com/package/@dynatrace-sdk/client-query)

Other dependencies for which the required version is not found on npmjs are

```auto
"@dynatrace/strato-components": "^1.4.0",
"@dynatrace/strato-components-preview": "^1.4.0",
"@dynatrace/strato-icons": "^1.3.0",

```

However, after modifying the package.json file with versions that matches the one found on [npmjs.com](http://npmjs.com), some errors about deprecated dependencies are prompted:

```auto
Error: Installing the dependencies failed.
Please try to run npm install
npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
npm WARN deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead
npm WARN deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.
npm ERR! code EEXIST
npm ERR! syscall copyfile
npm ERR! path C:\Users\c330613\AppData\Local\npm-cache\_cacache\tmp\d860fc81
npm ERR! dest C:\Users\c330613\AppData\Local\npm-cache\_cacache\content-v2\sha512\25\0e\53b8c8b8e4ec22e3f048300241a12428389bb5da83a4fe0003aa57142fd24474707cbf28d44acc6a78d5e79971e360a322d96718b5ecc610486a508fc4da
npm ERR! errno -4082
npm ERR! EBUSY: resource busy or locked, copyfile 'C:\Users\c330613\AppData\Local\npm-cache\_cacache\tmp\d860fc81' -> 'C:\Users\c330613\AppData\Local\npm-cache\_cacache\content-v2\sha512\25\0e\53b8c8b8e4ec22e3f048300241a12428389bb5da83a4fe0003aa57142fd24474707cbf28d44acc6a78d5e79971e360a322d96718b5ecc610486a508fc4da'
npm ERR! File exists: C:\Users\c330613\AppData\Local\npm-cache\_cacache\content-v2\sha512\25\0e\53b8c8b8e4ec22e3f048300241a12428389bb5da83a4fe0003aa57142fd24474707cbf28d44acc6a78d5e79971e360a322d96718b5ecc610486a508fc4da
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

```

Could you please help us with this situation? Which configuration should be applied for installing the correct packages (and versions) ? Are there other repositories?

Other informations:

node version: v20.2.0

npm ping result:

```auto
npm notice PING https://registry.npmjs.org/
npm notice PONG 416ms

```

Thank you

Giovanni

---

<div class="post-metadata">

**Author:** ![tomislav\_zorcec](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@tomislav\_zorcec](https://community.dynatrace.com/u/tomislav_zorcec)\
**Post date:** [April 15, 2025, 11:04am UTC](https://community.dynatrace.com/t/dynatrace-app-toolkit-eresolve-unable-to-resolve-dependency-tree/51155/2 "2025-04-15T11:04:30Z")

</div>

Hello! Thanks for reaching out!

Each version of dt-app uses a specific GitHub commit to ensure compatibility between the dt-app CLI and the templates.

The current public dt-app version is&nbsp; **0.139.1** , which corresponds to this [commit](https://github.com/Dynatrace/dt-app-templates/commit/3d59753e53312b72729cf5b130680a288030e86d).

You can find a list of all tagged commits [here](https://github.com/Dynatrace/dt-app-templates/tags).

Once your app is created or dependencies are adjusted, you can use the&nbsp;[dt-app update](https://developer.dynatrace.com/develop/app-toolkit/commands/#dt-app-update)&nbsp;command to ensure you’re&nbsp;up to date and all automatic migrations are executed.

Considering the above, I would suggest doing the following:

- Manually correct dependencies inside the package.json to the ones used in `[Update dependencies (#48) · Dynatrace/dt-app-templates@3d59753 · GitHub](https://github.com/Dynatrace/dt-app-templates/commit/3d59753e53312b72729cf5b130680a288030e86d?diff=split#diff-cf2a6d486ce0bb36ecc8b7e15c7c129eea32c94f14b80bb13cdd2ab7da366256%60)
- Execute `npm i`
- Execute `npx dt-app update`

If you’re trying to create an internal app template, please always base it on the commit that is tagged with the publicly available version and use `npm dt-app update` to keep it up-to-date

If you have any additional questions or problems, just let me know!

---

<div class="post-metadata">

**Author:** ![giovannialb](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@giovannialb](https://community.dynatrace.com/u/giovannialb)\
**Post date:** [April 17, 2025, 12:12pm UTC](https://community.dynatrace.com/t/dynatrace-app-toolkit-eresolve-unable-to-resolve-dependency-tree/51155/3 "2025-04-17T12:12:18Z")

</div>

Thank you! This indeed resolved our issue, and we installed the app correctly!

One more thing if I may ask: we completed all the checks in the troubleshooting connectivity page of the documentation:&nbsp;[Troubleshoot connectivity | Dynatrace Developer](https://developer.dynatrace.com/develop/troubleshoot/troubleshoot-connectivity/)&nbsp;&nbsp;, so all the connection tests work as expected, both for connectivity regarding our machine and for node.js.

However, when we start the app, the SSO-URL seems to be not reachable.

 ![giovannialb_1-1744891827534.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/9/398e71160dfffa4f560fb4899299969d08ed5f66.png)

We set up also&nbsp;NODE\_EXTRA\_CA\_CERTS&nbsp; as local variable and updated the npm configuration:

```markup
$env:NODE_EXTRA_CA_CERTS=path\to\certificate.pem
npm config set cafile "path\to\certificate.pem"

```

but it seems not to work.

Do you have any insight on this?

Thank you very much

Giovanni

---

<div class="post-metadata">

**Author:** ![tomislav\_zorcec](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@tomislav\_zorcec](https://community.dynatrace.com/u/tomislav_zorcec)\
**Post date:** [April 17, 2025, 12:34pm UTC](https://community.dynatrace.com/t/dynatrace-app-toolkit-eresolve-unable-to-resolve-dependency-tree/51155/4 "2025-04-17T12:34:32Z")

</div>

I am happy to hear that your problem was resolved!

Connectivity problems are challenging to debug outside your network, but I can try to guide you.

Can you provide me with more details about your internal network:

- Do you have to use a proxy to connect to the internet?
- Do you have to authenticate to proxy? What kind of authentication proxy requires?
- Do you know of any other restrictions?&nbsp;(eq. local firewall, dns restrictions…)

---

<div class="post-metadata">

**Author:** ![giovannialb](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@giovannialb](https://community.dynatrace.com/u/giovannialb)\
**Post date:** [April 17, 2025, 1:27pm UTC](https://community.dynatrace.com/t/dynatrace-app-toolkit-eresolve-unable-to-resolve-dependency-tree/51155/5 "2025-04-17T13:27:36Z")

</div>

Thanks for your kindness and prompt response!

So after some more investigations, it appears that I cannot authenticate to the environment:

```markup
PS C:\Users\> Invoke-WebRequest -Uri https://{environmentid}.apps.dynatrace.com

Invoke-WebRequest : {"error":{"code":401,"message":"Authentication required","details":{"traceId":"260ffed84cc1e6f01fd5dd5be95ddb4c"}}}

```

But it seems that the enpoint is correctly reached:

```markup
PS C:\Users> Invoke-WebRequest -Uri https://{environmentid}.apps.dynatrace.com/platform/oauth2/authorization/dynatrace-sso

StatusCode : 200
StatusDescription : OK 
RawContent : HTTP/1.1 200 OK
                    Connection: keep-alive
                    Content-Length: 3035
                    Content-Type: text/html;charset=utf-8
                    Date: Thu, 17 Apr 2025 13:13:30 GMT

```

Also on node.js :

```markup
PS C:\Users\> node -e "fetch('https://{environmentid}.apps.dynatrace.com').then(console.log)"

Response {
  [Symbol(realm)]: null,
  [Symbol(state)]: {
    aborted: false,
    rangeRequested: false,
    timingAllowPassed: true,
    requestIncludesCredentials: true,
    type: 'default',
    status: 401,

```

```markup
PS C:\Users\> node -e "fetch('https://{environmentid}.apps.dynatrace.com/platform/oauth2/authorization/dynatrace-sso').then(console.log)"

Response {
  [Symbol(realm)]: null,
  [Symbol(state)]: {
    aborted: false,
    rangeRequested: false,
    timingAllowPassed: true,
    requestIncludesCredentials: false,
    type: 'default',
    status: 200,

```

About our internal network: we have an authenticated proxy to connect to internet endpoints, but looking at the previous outputs, the&nbsp;environment seems to be reachable from our machine within the corporate network, correct?

Do you know how authentication is supposed to be performed? Are there other parameters that we need to specify?

Thank you

---

<div class="post-metadata">

**Author:** ![tomislav\_zorcec](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@tomislav\_zorcec](https://community.dynatrace.com/u/tomislav_zorcec)\
**Post date:** [April 17, 2025, 1:43pm UTC](https://community.dynatrace.com/t/dynatrace-app-toolkit-eresolve-unable-to-resolve-dependency-tree/51155/6 "2025-04-17T13:43:11Z")

</div>

Thank you for sharing the details with me!

Yes, it looks like the required endpoints are reachable from your PowerShell.

As the next step, please use the internal proxy with the dt-app by setting the following environment variable:

- DT\_APP\_HTTPS\_PROXY - With the following format: (http or https)://\<username\>:\<password\>@\<host\>:\<port\>

---

<div class="post-metadata">

**Author:** ![giovannialb](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@giovannialb](https://community.dynatrace.com/u/giovannialb)\
**Post date:** [April 18, 2025, 9:31am UTC](https://community.dynatrace.com/t/dynatrace-app-toolkit-eresolve-unable-to-resolve-dependency-tree/51155/7 "2025-04-18T09:31:47Z")

</div>

Thanks for the suggestion: I applied the env variable as described, with our internal proxy, but unfortunately we recieve the same error.

I also tried to authenticate with the “Dynatrace apps” VS extention, but we recieve the following error:

```markup
Error: Error fetching token: Tokens not found
	at CO.fetchTokens (c:\Users\xxxxx\.vscode\extensions\dynatrace.dynatrace-apps-0.28.1\lib\extension.js:776:5033)
	at async CO.createSession (c:\Users\xxxxx\.vscode\extensions\dynatrace.dynatrace-apps-0.28.1\lib\extension.js:776:4312)
	at async Sw.$createSession (file:///c:/Users/xxxxx/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:113:3533)

```

These are app logs after we performed the command&nbsp; **npx dt-app dev** :

```markup
2025-04-18T10:33:53.911Z DEBUG [AUTH] Retrieving SSO-URL for environment 'https://{environmentid}.apps.dynatrace.com'
2025-04-18T10:33:53.911Z DEBUG [HTTP(S)] Execute GET request without allowing redirection to 'https://{environmentid}.apps.dynatrace.com/platform/oauth2/authorization/dynatrace-sso'
2025-04-18T10:33:54.000Z DEBUG [AUTH] SSO-URL for 'https://{environmentid}.apps.dynatrace.com' could not be processed.
2025-04-18T10:33:54.000Z DEBUG [AUTH] Error: fetch failed
2025-04-18T10:33:54.002Z ERROR Error: SSO-URL for 'https://{environmentid}.apps.dynatrace.com' could not be processed.
fetch failed

```

---

<div class="post-metadata">

**Author:** ![tomislav\_zorcec](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@tomislav\_zorcec](https://community.dynatrace.com/u/tomislav_zorcec)\
**Post date:** [April 18, 2025, 10:16am UTC](https://community.dynatrace.com/t/dynatrace-app-toolkit-eresolve-unable-to-resolve-dependency-tree/51155/8 "2025-04-18T10:16:35Z")

</div>

It might be worth checking your firewall settings if the proxy isn’t resolving the issue. It’s possible that the&nbsp;dt-app CLI&nbsp;is an unknown application, and access to the network/internet is being blocked.

I recommend discussing this further with your IT department. For additional guidance, please contact Dynatrace support, as this issue may require a more detailed investigation:&nbsp;[https://one.dynatrace.com/hc/en-us/requests](https://one.dynatrace.com/hc/en-us/requests)
