04 Jun 2025 02:32 PM
Good morning.
I am attempting to work through the Dynatrace First App in 5 Minutes tutorial: First app in 5 minutes | Dynatrace Developer
I am new to the world of node.js and npx, which is most likely why I am having so much trouble. However, a first app tutorial should be extremely straight forward and easy to implement.
Initially, when attempting to create the new project with "npx dt-app@latest create" I was getting errors stating npx could not retrieve the necessary templates from GitHub. I ran through the connectivity troubleshooting documentation, and found the workaround where I could manually download the templates and provide the path to these within the npx dt-app command line. This helped, as the creation process progressed somewhat with this. However, I am not receiving the following errors:
Error: Installing the dependencies failed.
Please try to run npm install
npm error code ETARGET
npm error notarget No matching version found for @dynatrace-sdk/navigation@^2.1.0.
npm error notarget In most cases you or one of your dependencies are requesting
npm error notarget a package version that doesn't exist.
It seems there is a problem with the dependencies that are being pulled by npx. Shouldn't the dt-app have the correct config files to resolve this? How do I go about correcting this?
I have attached the error log file for review.
Any help would be greatly appreciated.
Thank you!
04 Jun 2025 03:55 PM
Hi djmnyc,
I see in the logs that you're using node v24, can you please try using v22.16 and let me know the outcome? Also terminal/cmd log would be helpful to see in case it fails again.
Best, Haris
06 Jun 2025 08:05 PM
Hi Harris.
I removed v24 and installed v22.16 as you suggested. Unfortunately, I am still getting the same error message:
I have attached both the cmd error and the error log file.
06 Jun 2025 11:11 PM
I see, it seems like there's an issue with the template you're referencing. Can you try once again without using template?
These might give us better overview of the situation and reason it's happening.
Best, Haris
09 Jun 2025 02:34 PM
Thanks Haris.
In response to your debug suggestions:
When I run npx dt-app@latest create without specifying the local templates, I get an access error to GitHub. That is why I downloaded the templates locally and provided the --template option as seen in this convo above. Here is the exact error I receive when I do not add the template option:
17 Jun 2025 01:57 PM
Thanks for the info, I'm checking this with the team and we'll get back to you as soon as possible.