# Unable to run 'npm run start' cmd while creating custom app

**URL:** <https://community.dynatrace.com/t/unable-to-run-npm-run-start-cmd-while-creating-custom-app/48753>\
**Category:** Developer Q&A Forum\
**Tags:** custom-app\
**Created:** [November 5, 2024, 9:48pm UTC](https://community.dynatrace.com/t/unable-to-run-npm-run-start-cmd-while-creating-custom-app/48753 "2024-11-05T21:48:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanveermd](https://avatars.discourse-cdn.com/v4/letter/t/90db22/32.png) [@Tanveermd](https://community.dynatrace.com/u/Tanveermd)\
**Post date:** [November 5, 2024, 9:48pm UTC](https://community.dynatrace.com/t/unable-to-run-npm-run-start-cmd-while-creating-custom-app/48753/1 "2024-11-05T21:48:45Z")

</div>

Hi,

I am unable to run ‘npm run start’ cmd while creating custom app, here is the error that I am getting, please could you help me in resolving this error

C:\Users\xxxxx\tansre-3\>npm run start  
npm ERR! Missing script: “start”  
npm ERR!  
npm ERR! Did you mean one of these?  
npm ERR! npm star # Mark your favorite packages  
npm ERR! npm stars # View packages marked as favorites  
npm ERR!  
npm ERR! To see a list of scripts, run:  
npm ERR! npm run

npm ERR! A complete log of this run can be found in: C:\Users\xxxxx\AppData\Local\npm-cache\_logs\2024-11-05T21\_38\_41\_992Z-debug-0.log

---

<div class="post-metadata">

**Author:** ![Mulks](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@Mulks](https://community.dynatrace.com/u/Mulks)\
**Post date:** [November 5, 2024, 10:17pm UTC](https://community.dynatrace.com/t/unable-to-run-npm-run-start-cmd-while-creating-custom-app/48753/2 "2024-11-05T22:17:45Z")

</div>

Check to make sure you have the correct package.json file. There will be a scripts block with all the npm commands available to the app.

Example:

“scripts”: {&nbsp; &nbsp; “build”: “dt-app build --prod”,&nbsp; &nbsp; “start”: “dt-app dev”,&nbsp; &nbsp; “generate:function”: “dt-app generate function”,&nbsp; &nbsp; “generate:action”: “dt-app generate action”,&nbsp; &nbsp; “uninstall”: “dt-app uninstall”,&nbsp; &nbsp; “deploy”: “dt-app deploy”,&nbsp; &nbsp; “update”: “dt-app update”,&nbsp; &nbsp; “info”: “dt-app info”,&nbsp; &nbsp; “help”: “dt-app help”,&nbsp; &nbsp; “lint”: “eslint .”&nbsp; }

---

<div class="post-metadata">

**Author:** ![Taylor-Sanchez](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/taylor-sanchez/32/8756_2.png) [@Taylor-Sanchez](https://community.dynatrace.com/u/Taylor-Sanchez)\
**Post date:** [November 5, 2024, 11:08pm UTC](https://community.dynatrace.com/t/unable-to-run-npm-run-start-cmd-while-creating-custom-app/48753/3 "2024-11-05T23:08:09Z")

</div>

You may simply be missing the `start` script that should be located in in the `package.json` file. I would verify that this script actually exists before running.

---

<div class="post-metadata">

**Author:** ![Tanveermd](https://avatars.discourse-cdn.com/v4/letter/t/90db22/32.png) [@Tanveermd](https://community.dynatrace.com/u/Tanveermd)\
**Post date:** [November 6, 2024, 5:26am UTC](https://community.dynatrace.com/t/unable-to-run-npm-run-start-cmd-while-creating-custom-app/48753/4 "2024-11-06T05:26:48Z")

</div>

Many thanks for your response Mulks and Taylor, I am able to start the development server, but now ending-up with the following error

C:\Users\xxxx\tansre-3\>npm run start

\> start  
\> dt-app dev

Warning ──────────────────────────────────────────────────────────────────────────────────

Failed to retrieve user details. App functions will use placeholder data.

──────────────────────────────────────────────────────────────────────────────────────────

DT-APP: Started local development server  
\> \<no file\> - Error: Cannot find tsconfig file “tsconfig.json”

\> \<no file\> - Error: Could not resolve “C:\\Users\\xxxx\\tansre-3\\src\\main.tsx”

× Authenticating…  
Error: SSO-URL for ‘https://{environmentid}.apps.dynatrace.com’ could not be processed.  
self-signed certificate in certificate chain  
If you need further assistance visit the connectivity troubleshooting guide here: [Troubleshoot connectivity | Dynatrace Developer](https://dt-url.net/c4jp0s12)

Looks like I am still missing something. Please advise

---

<div class="post-metadata">

**Author:** ![zaid-bashir](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zaid-bashir/32/22651_2.png) [@zaid-bashir](https://community.dynatrace.com/u/zaid-bashir)\
**Post date:** [January 8, 2025, 6:22am UTC](https://community.dynatrace.com/t/unable-to-run-npm-run-start-cmd-while-creating-custom-app/48753/5 "2025-01-08T06:22:54Z")

</div>

Hi [@Tanveermd](https://community.dynatrace.com/user/75062),  
It is a better approach to install the&nbsp;Dynatrace Apps extension on VSCode. Just search in VScode Extensions for “Dynatrace Apps”.

 ![zaidbashir_0-1736316809589.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/5/a513c4b37a230da17534e4611130c1af058b9685.png)

Once you create the project, it will show you “**[Dynatrace] Not Authenticated**”.

 ![Not Authenticated](https://global.discourse-cdn.com/dynatrace/original/3X/f/c/fcbcfb9e3c5adc75358a5bfc492a72ce236c3119.png)

Just Click on it and it will show you dialog like the below to authenticate your self with the dynatrace account.

 ![zaidbashir_1-1736317052259.png](https://global.discourse-cdn.com/dynatrace/original/2X/4/4d85f6df03d2d3fac074217be3e070d0ed1ca904.png)

If you are still facing problem, try to look into your package.json file for “scripts” parameter. Below you can find the “scripts” field.

“scripts”: {&nbsp; &nbsp; “build”: “dt-app build --prod”,&nbsp; &nbsp; “start”: “dt-app dev”,&nbsp; &nbsp; “generate:function”: “dt-app generate function”,&nbsp; &nbsp; “generate:action”: “dt-app generate action”,&nbsp; &nbsp; “uninstall”: “dt-app uninstall”,&nbsp; &nbsp; “deploy”: “dt-app deploy”,&nbsp; &nbsp; “update”: “dt-app update”,&nbsp; &nbsp; “info”: “dt-app info”,&nbsp; &nbsp; “help”: “dt-app help”,&nbsp; &nbsp; “lint”: “eslint .”&nbsp; }

Thanks

---

<div class="post-metadata">

**Author:** ![zaid-bashir](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zaid-bashir/32/22651_2.png) [@zaid-bashir](https://community.dynatrace.com/u/zaid-bashir)\
**Post date:** [January 8, 2025, 6:41am UTC](https://community.dynatrace.com/t/unable-to-run-npm-run-start-cmd-while-creating-custom-app/48753/6 "2025-01-08T06:41:34Z")

</div>

Hi&nbsp;[@Tanveermd](https://community.dynatrace.com/user/75062)

First of all, try to create project in a disk different from “C” disk. If “C” is your only available disk, then try to create one folder like “ **src** ” under “ **C** ” drive and then create a project under “ **C/src/** ” because sometimes permissions also create problem.

After you created your project using “ **npx dt-app@latest create** ” and you followed the instructions given there. Try to point out to the same directory i mean be in the root directory of the project and then run the command like:

“ **npm run start** ”.

If you face some issues related to authentication while running the app, here i have given you answer for that.  
[https://community.dynatrace.com/t5/Developer-Q-A-Forum/Unable-to-run-npm-run-start-cmd-while-creating-custom-app/m-p/266825#M1233](https://community.dynatrace.com/post/266825#M1233)

---

<div class="post-metadata">

**Author:** ![MarwanC](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marwanc/32/34480_2.png) [@MarwanC](https://community.dynatrace.com/u/MarwanC)\
**Post date:** [June 16, 2025, 2:16pm UTC](https://community.dynatrace.com/t/unable-to-run-npm-run-start-cmd-while-creating-custom-app/48753/7 "2025-06-16T14:16:27Z")

</div>

Just a very simple question, how did you instal this tool in the first place: I am getting this error:&nbsp;C:\Users\1\NodeJS\node-v22.16.0-win-x64\>npm install -g [@dynatrace](https://community.dynatrace.com/user/64071)/dt-app  
npm error code E404  
npm error 404 Not Found - GET [https://registry.npmjs.org/@dynatrace%2Fdt-app](https://registry.npmjs.org/@dynatrace%2fdt-app) - Not found  
npm error 404  
npm error 404 ‘@dynatrace/dt-app@\*’ is not in this registry.  
npm error 404  
npm error 404 Note that you can also install from a  
npm error 404 tarball, folder, http url, or git url.  
npm error A complete log of this run can be found in: C:\Users\1\AppData\Local\npm-cache\_logs\2025-06-16T14\_12\_54\_833Z-debug-0.log - Any feedback is much appreciated?
