cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Developer First App : Errors with npx dt-app

djmnyc
Visitor

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!

 

5 REPLIES 5

haris
Dynatrace Mentor
Dynatrace Mentor

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

Developer Advocate,
Haris Hibic

djmnyc
Visitor

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.

cmd_error.png

haris
Dynatrace Mentor
Dynatrace Mentor

I see, it seems like there's an issue with the template you're referencing. Can you try once again without using template? 

Otherwise, here are some of the possible reasons:
  • Access to the internet on local machines is not permitted at all
  • The firewall is configured only to allow access to specific domains
  • Only specific processes/tools can access external webpage
  •  
How to debug:

These might give us better overview of the situation and reason it's happening.

Best, Haris

Developer Advocate,
Haris Hibic

Thanks Haris.

In response to your debug suggestions:

  • Can your machine access any external webpage via the browser?  
    Yes, but of course limited to what is allowed via our corporate firewall.
     
  • Can you open "https://github.com/Dynatrace/dt-app-templates" in the browser?
    Yes, no issues here.

  • Can you use npm CLI, and if so, how did you make it work?
    Yes, I can run npm and npx.  I am not sure exactly what you are asking with "how did you make it work".  It was installed with the node.js installation.  I have not used npm or npx prior to attempting to work through the Dynatrace First app tutorial.  

  • Can you access your Dynatrace tenant, and if so, how did you make it work?
    Yes, I can access our Dynatrace tenant without issue.  Again, not exactly sure what you are asking.  Is there a specific configuration or setup of our Dynatrace environment that you'd like to know?

 

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:

djmnyc_0-1749475999322.png

 



haris
Dynatrace Mentor
Dynatrace Mentor

Thanks for the info, I'm checking this with the team and we'll get back to you as soon as possible.

Developer Advocate,
Haris Hibic

Featured Posts