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?
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.
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:
Hi, I have information that if the dt-app can’t fetch the templates from GitHub, it means that it is blocked from internet access, or at least access to GitHub.
The issue is regarding your internal firewall configuration, and we’re very limited in how we can help. A workaround would be to:
specifying the unzipped templates folder via --template-dir
But if npm or dt-app is blocked from internet access, there will be further problems, as you can see. I think this is what happened above when you tried. You should try to adjust the firewall configuration in this case.