I’m trying to create a demo app, following the documentation instructions.
When I run (node 20.18.1 LTS, npm 11.0.0)
npx dt-app@latest create
I got a lot of errors ; among them to include this log when opening a support case (which I did but dynatrace support redicected me here).
If instead I use latest node 22.12.10 node LTS (npm 10.9.0) I first get this warning the warning bellow also followed by a long list of errors, and the log in this case is here.
Hi Adrian, I’ve checked and couldn’t find much here.
Can you paste a screenshot of the errors you see after entering the environment URL please? Also, I’ve tried replicating on my machine and I couldn’t reproduce the errors.
418150 verbose stack Error: Unsupported URL Type: npm:@swc/helpers@=0.4.14<br>418150 verbose stack at parseUrl (/disco_mecanico/temp/dynatrace/node_modules/npm/node_modules/npm-package-arg/npa.js:169:13)<br>418150 verbose stack at npa (/disco_mecanico/temp/dynatrace/node_modules/npm/node_modules/npm-package-arg/npa.js:75:12)<br>418150 verbose stack at resolver (/disco_mecanico/temp/dynatrace/node_modules/npm/lib/install.js:845:42)<br>418150 verbose stack at Timeout._onTimeout (/disco_mecanico/temp/dynatrace/node_modules/npm/lib/install.js:840:7)<br>418150 verbose stack at listOnTimeout (node:internal/timers:594:17)<br>418150 verbose stack at process.processTimers (node:internal/timers:529:7)<br>418151 verbose cwd /disco_mecanico/temp/dynatrace/app-2212<br>418152 error Linux 6.1.0-28-amd64<br>418153 error argv "/home/adi/.nvm/versions/node/v22.12.0/bin/node" "/disco_mecanico/temp/dynatrace/node_modules/.bin/npm" "install"<br>418154 error node v22.12.0<br>418155 error npm v2.15.12<br>418156 error Unsupported URL Type: npm:@swc/helpers@=0.4.14<br>418157 error If you need help, you may report this error at:<br>418157 error <https://github.com/npm/npm/issues><br>418158 verbose exit [ 1, true ]
It seems to be reporting old npm v2.15.12 so there is a dependency issue somewhere in the dev env - maybe deleting dir /disco_mecanico/temp/dynatrace/ and running create again would help?