# Create a App Error

**URL:** <https://community.dynatrace.com/t/create-a-app-error/45285>\
**Category:** Developer Q&A Forum\
**Tags:** custom-app\
**Created:** [April 24, 2024, 5:10pm UTC](https://community.dynatrace.com/t/create-a-app-error/45285 "2024-04-24T17:10:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DD\_Developer](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DD\_Developer](https://community.dynatrace.com/u/DD_Developer)\
**Post date:** [April 24, 2024, 5:10pm UTC](https://community.dynatrace.com/t/create-a-app-error/45285/1 "2024-04-24T17:10:09Z")

</div>

![2024-04-24 11-51-23_Start.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/0/001e76eff8b385ccc19cda1b1a7420ba8e2713f0.png)

Hi,

I am trying to build an App using the tutorials available at&nbsp;[First app in 5 minutes | Dynatrace Developer](https://developer.dynatrace.com/getting-started/quickstart)

The first error was due to the following line where npm folder was not created after node js installed.

The error is

npm ERR! code ENOENT  
npm ERR! syscall lstat  
npm ERR! path C:\Users\XXXX\AppData\Roaming\npm  
npm ERR! errno -4058  
npm ERR! enoent ENOENT: no such file or directory, lstat ‘C:\Users\XXXX\AppData\Roaming\npm’  
npm ERR! enoent This is related to npm not being able to find a file.  
npm ERR! enoent

After manually creating the npm folder,However, The process finally fails with the following error.

Searching for template repositories…Error reading repository archive: TypeError: fetch failed  
at node:internal/deps/undici/undici:12344:11  
at process.processTicksAndRejections (node:internal/process/task\_queues:95:5)  
at async by (C:\Users\XXXX\AppData\Local\npm-cache\_npx\c71cbee634d2345c\node\_modules\dt-app\lib\src\bin.js:145:3921)  
at async wy (C:\Users\XXXX\AppData\Local\npm-cache\_npx\c71cbee634d2345c\node\_modules\dt-app\lib\src\bin.js:145:3662)  
at async dp (C:\Users\XXXX\AppData\Local\npm-cache\_npx\c71cbee634d2345c\node\_modules\dt-app\lib\src\bin.js:145:4865)  
at async up (C:\Users\XXXX\AppData\Local\npm-cache\_npx\c71cbee634d2345c\node\_modules\dt-app\lib\src\bin.js:148:182)  
at async Command.\<anonymous\> (C:\Users\XXXX\AppData\Local\npm-cache\_npx\c71cbee634d2345c\node\_modules\dt-app\lib\src\bin.js:178:1336) {  
cause: Error: read ECONNRESET  
at TLSWrap.onStreamRead (node:internal/stream\_base\_commons:217:20) {  
errno: -4077,  
code: ‘ECONNRESET’,  
syscall: ‘read’  
}  
}  
× Searching for template repositories…  
Error: Could not retrieve templates from the template repository.

The order of execution of the steps can be seen in the screenshot attached.

Node JS Version is V20.11.0

Windows 10 OS 64 bit

Also, Was just wondering if I need to do any steps after Node Js (V20.11.0) is installed ?

---

<div class="post-metadata">

**Author:** ![DD\_Developer](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DD\_Developer](https://community.dynatrace.com/u/DD_Developer)\
**Post date:** [April 24, 2024, 6:22pm UTC](https://community.dynatrace.com/t/create-a-app-error/45285/2 "2024-04-24T18:22:03Z")

</div>

More details : Tried both ways with and without the templates parameter.

- npx dt-app@latest create --environment-url https://{environmentid}.apps.dynatrace.com
- npx dt-app@latest create --environment-url https://{environmentid}.apps.dynatrace.com --template empty

---

<div class="post-metadata">

**Author:** ![sinisa\_zubic](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sinisa_zubic/32/32498_2.png) [@sinisa\_zubic](https://community.dynatrace.com/u/sinisa_zubic)\
**Post date:** [April 24, 2024, 7:56pm UTC](https://community.dynatrace.com/t/create-a-app-error/45285/3 "2024-04-24T19:56:56Z")

</div>

Hi&nbsp;[@DD\_Developer](https://community.dynatrace.com/user/74990)

It looks like github is blocked by a firewall. can you maybe run this command in the windows terminal and check if the connection check was successful?

```markup
> tnc github.com -port 443

ComputerName : github.com
RemoteAddress : 140.82.121.3
RemotePort : 443
InterfaceAlias : Ethernet 2
SourceAddress : <private ip>
TcpTestSucceeded : True

```

if github is blocked, you could try to use an older version of the dt-app toolkit which does not rely on github

```markup
npx dt-app@0.115.5 create

```

Best,  
Sini

---

<div class="post-metadata">

**Author:** ![DD\_Developer](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DD\_Developer](https://community.dynatrace.com/u/DD_Developer)\
**Post date:** [April 24, 2024, 8:09pm UTC](https://community.dynatrace.com/t/create-a-app-error/45285/4 "2024-04-24T20:09:27Z")

</div>

[@sinisa\_zubic](https://community.dynatrace.com/user/38283)&nbsp;,

Thanks a lot. The command below worked.

```markup
npx dt-app@0.115.5 create

```

May it helps for other users,

In the Command Window, The following command didn’t work , The same command worked fine with TCPVariableSucceeded attribute as true in PowerShell.

```markup
tnc github.com -port 443

```

---

<div class="post-metadata">

**Author:** ![avinashpodisett](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@avinashpodisett](https://community.dynatrace.com/u/avinashpodisett)\
**Post date:** [June 3, 2024, 8:37pm UTC](https://community.dynatrace.com/t/create-a-app-error/45285/5 "2024-06-03T20:37:40Z")

</div>

Having same issue, following command shows me that i have access to github, but npx command is failing

nc -vz [github.com](http://github.com) 443  
Connection to [github.com](http://github.com) port 443 [tcp/https://{environmentid}.apps.dynatrace.com" target=\_blank\>https://{environmentid}.apps.dynatrace.com  
Searching for template repositories…Error reading repository archive: TypeError: fetch failed  
at node:internal/deps/undici/undici:12502:13  
at process.processTicksAndRejections (node:internal/process/task\_queues:95:5)  
at async Jy (/Users/lidsc82/.npm/\_npx/c71cbee634d2345c/node\_modules/dt-app/lib/src/bin.js:146:3975)  
at async Hy (/Users/lidsc82/.npm/\_npx/c71cbee634d2345c/node\_modules/dt-app/lib/src/bin.js:146:3693)  
at async Sp (/Users/lidsc82/.npm/\_npx/c71cbee634d2345c/node\_modules/dt-app/lib/src/bin.js:146:4935)  
at async Ep (/Users/lidsc82/.npm/\_npx/c71cbee634d2345c/node\_modules/dt-app/lib/src/bin.js:149:182)  
at async Command.\<anonymous\> (/Users/lidsc82/.npm/\_npx/c71cbee634d2345c/node\_modules/dt-app/lib/src/bin.js:179:1360) {  
[cause]: Error: read ECONNRESET  
at TLSWrap.onStreamRead (node:internal/stream\_base\_commons:218:20) {  
errno: -54,  
code: ‘ECONNRESET’,  
syscall: ‘read’
