Hi devs!
We are trying to download and set up the Dynatrace App Toolkit. We execute the following command to initialize a new app, after downloading the app templates in the target folder:
npx dt-app@latest create --environment-url https://{environmentid}.apps.dynatrace.com --template-dir .\dt-app-templates-main\templates\default
And the output is the following:
Error: Installing the dependencies failed.
Please try to run npm install
npm ERR! code ETARGET
npm ERR! notarget No matching version found for <a href="/user/64071">@dynatrace</a>-sdk/client-query@^1.20.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
We’ve noticed that, in the package.json file of the default template, some npm packages require versions that are not found.
For instance, consider the dependecy: dt-app-templates/templates/default/package.json at 402fb136c063c3e0ee349088fa472d6a159a4d77 · Dynatrace/dt-app-templates · GitHub
"@dynatrace-sdk/client-query": "^1.20.0",
On www.npmjs.com, we see that the latest version is 1.18.1 : https://www.npmjs.com/package/@dynatrace-sdk/client-query
Other dependencies for which the required version is not found on npmjs are
"@dynatrace/strato-components": "^1.4.0",<br>"@dynatrace/strato-components-preview": "^1.4.0",<br>"@dynatrace/strato-icons": "^1.3.0",
However, after modifying the package.json file with versions that matches the one found on npmjs.com, some errors about deprecated dependencies are prompted:
Error: Installing the dependencies failed.<br>Please try to run npm install<br>npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.<br>npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported<br>npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported<br>npm WARN deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead<br>npm WARN deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead<br>npm WARN deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.<br>npm ERR! code EEXIST<br>npm ERR! syscall copyfile<br>npm ERR! path C:\Users\c330613\AppData\Local\npm-cache\_cacache\tmp\d860fc81<br>npm ERR! dest C:\Users\c330613\AppData\Local\npm-cache\_cacache\content-v2\sha512\25\0e\53b8c8b8e4ec22e3f048300241a12428389bb5da83a4fe0003aa57142fd24474707cbf28d44acc6a78d5e79971e360a322d96718b5ecc610486a508fc4da <br>npm ERR! errno -4082<br>npm ERR! EBUSY: resource busy or locked, copyfile 'C:\Users\c330613\AppData\Local\npm-cache\_cacache\tmp\d860fc81' -> 'C:\Users\c330613\AppData\Local\npm-cache\_cacache\content-v2\sha512\25\0e\53b8c8b8e4ec22e3f048300241a12428389bb5da83a4fe0003aa57142fd24474707cbf28d44acc6a78d5e79971e360a322d96718b5ecc610486a508fc4da'<br>npm ERR! File exists: C:\Users\c330613\AppData\Local\npm-cache\_cacache\content-v2\sha512\25\0e\53b8c8b8e4ec22e3f048300241a12428389bb5da83a4fe0003aa57142fd24474707cbf28d44acc6a78d5e79971e360a322d96718b5ecc610486a508fc4da<br>npm ERR! Remove the existing file and try again, or run npm<br>npm ERR! with --force to overwrite files recklessly.
Could you please help us with this situation? Which configuration should be applied for installing the correct packages (and versions) ? Are there other repositories?
Other informations:
node version: v20.2.0
npm ping result:
npm notice PING https://registry.npmjs.org/<br>npm notice PONG 416ms
Thank you
Giovanni
