SAP / ui5-tooling

An open and modular toolchain to develop state of the art applications based on the UI5 framework
https://sap.github.io/ui5-tooling
Apache License 2.0
469 stars 71 forks source link

Build - No matching version found for @sapui5/distribution-metadata@1.96.5 #598

Closed faow closed 2 years ago

faow commented 2 years ago

Expected Behavior

Build is working on newest LTS (1.96.5) version

Current Behavior

Build command fails while trying to install @sapui5/distribution-metadata with error No matching version found for @sapui5/distribution-metadata@1.96.5 1.96.4 is working 1.98.0 is working aswell

Steps to Reproduce the Issue

> ui5 build -a --clean-dest

info normalizer:translators:ui5Framework Using SAPUI5 version: 1.96.5
info normalizer:ui5Framework:npm:Installer Installing missing package @sapui5/distribution-metadata...
[..................] \ : info normalizer:ui5Framework:npm:Installer Installing missing package @sapui5/distribution-metadata...
⚠️  Process Failed With Error

Error Message:
Resolution of framework libraries failed with errors:
Failed to resolve library sap.f: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5.
Failed to resolve library sap.m: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5.
Failed to resolve library sap.ui.core: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5.    
Failed to resolve library themelib_sap_fiori_3: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5.
  1. Get forked app from https://github.com/faow/openui5-sample-app
  2. npm i
  3. npm run build

Context

Log Output / Stack Trace

> Executing task: npm run build <

> openui5-sample-app@0.2.0 build
> ui5 build -a --clean-dest --verbose

verb cli:middlewares:base using @ui5/cli version 2.14.4 (from C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\bin\ui5.js)
verb cli:middlewares:base using node version v16.13.2
verb normalizer:normalizer Building dependency tree...
verb normalizer:translators:npm Analyzing openui5-sample-app (C:\Users\**\openui5-sample-app) (dependency of nothing - root project)
verb normalizer:translators:npm [PERF] Consider defining UI5-dependencies in the package.json files of the relevant modules from the following list to improve npm translator 
execution time: openui5-sample-app
verb normalizer:translators:npm Treetop:
verb normalizer:translators:npm {
verb normalizer:translators:npm   id: 'openui5-sample-app',
verb normalizer:translators:npm   version: '0.2.0',
verb normalizer:translators:npm   path: 'C:\\Users\\**\\openui5-sample-app',
verb normalizer:translators:npm   dependencies: []
verb normalizer:translators:npm }
verb normalizer:projectPreprocessor Processing project openui5-sample-app on level 0...
verb types:application:ApplicationFormatter Formatting application project openui5-sample-app...
verb types:application:ApplicationFormatter Namespace of project openui5-sample-app is sap/ui/demo/todo (from manifest.json)
verb normalizer:projectPreprocessor Processed 1 projects in 374 ms
verb normalizer:normalizer Root project openui5-sample-app defines framework configuration. Installing UI5 dependencies...
info normalizer:translators:ui5Framework Using SAPUI5 version: 1.96.5
verb normalizer:ui5Framework:npm:Installer Installing to: C:\Users\**\.ui5\framework\packages
verb ui5Framework:AbstractResolver Processing sap.f
verb ui5Framework:AbstractResolver Processing sap.m
verb ui5Framework:AbstractResolver Processing sap.ui.core
verb ui5Framework:AbstractResolver Processing themelib_sap_fiori_3
verb normalizer:ui5Framework:Sapui5Resolver Installing @sapui5/distribution-metadata in version 1.96.5...
verb normalizer:ui5Framework:npm:Installer Locking C:\Users\**\.ui5\framework\locks\package-@sapui5-distribution-metadata@1.96.5.lock
info normalizer:ui5Framework:npm:Installer Installing missing package @sapui5/distribution-metadata...
verb normalizer:ui5Framework:npm:Installer Removing existing staging directory at C:\Users\**\.ui5\framework\staging\@sapui5-distribution-metadata-1.96.5...
verb normalizer:ui5Framework:npm:Installer Installing @sapui5/distribution-metadata in version 1.96.5 to C:\Users\**\.ui5\framework\staging\@sapui5-distribution-metadata-1.96.5...
verb normalizer:ui5Framework:npm:Registry Using npm configuration (extract):
verb normalizer:ui5Framework:npm:Registry    globalconfig: C:\Users\**\AppData\Roaming\npm\etc\npmrc
verb normalizer:ui5Framework:npm:Registry    userconfig: C:\Users\**\.npmrc
verb normalizer:ui5Framework:npm:Registry    cache: C:\Users\**\.ui5\framework\cacache
verb normalizer:ui5Framework:npm:Registry    cwd: C:\Users\**\openui5-sample-app
http fetch GET 200 https://registry.npmjs.org/@sapui5%2fdistribution-metadata 1678ms
verb normalizer:ui5Framework:npm:Installer Unlocking C:\Users\**\.ui5\framework\locks\package-@sapui5-distribution-metadata@1.96.5.lock
verb ui5Framework:AbstractResolver Failed to process library sap.f
verb ui5Framework:AbstractResolver Error: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5. 
verb ui5Framework:AbstractResolver Call stack: Error: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5.
verb ui5Framework:AbstractResolver     at Registry.extractPackage (C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\npm\Registry.js:26:10)
verb ui5Framework:AbstractResolver     at async C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\npm\Installer.js:93:6
verb ui5Framework:AbstractResolver     at async Installer._synchronize (C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\npm\Installer.js:139:4)
verb ui5Framework:AbstractResolver     at async Installer.installPackage (C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\npm\Installer.js:68:4)
verb ui5Framework:AbstractResolver     at async C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\Sapui5Resolver.js:39:23
verb ui5Framework:AbstractResolver Failed to process library sap.m
verb ui5Framework:AbstractResolver Error: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5. 
verb ui5Framework:AbstractResolver Call stack: Error: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5.
verb ui5Framework:AbstractResolver     at Registry.extractPackage (C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\npm\Registry.js:26:10)
verb ui5Framework:AbstractResolver     at async C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\npm\Installer.js:93:6
verb ui5Framework:AbstractResolver     at async Installer._synchronize (C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\npm\Installer.js:139:4)
verb ui5Framework:AbstractResolver     at async Installer.installPackage (C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\npm\Installer.js:68:4)
verb ui5Framework:AbstractResolver     at async C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\Sapui5Resolver.js:39:23
verb ui5Framework:AbstractResolver Failed to process library sap.ui.core
verb ui5Framework:AbstractResolver Error: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5. 
verb ui5Framework:AbstractResolver Call stack: Error: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5.
verb ui5Framework:AbstractResolver     at Registry.extractPackage (C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\npm\Registry.js:26:10)
verb ui5Framework:AbstractResolver     at async C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\npm\Installer.js:93:6
verb ui5Framework:AbstractResolver     at async Installer._synchronize (C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\npm\Installer.js:139:4)
verb ui5Framework:AbstractResolver     at async Installer.installPackage (C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\npm\Installer.js:68:4)
verb ui5Framework:AbstractResolver     at async C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\Sapui5Resolver.js:39:23
verb ui5Framework:AbstractResolver Failed to process library themelib_sap_fiori_3
verb ui5Framework:AbstractResolver Error: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5. 
verb ui5Framework:AbstractResolver Call stack: Error: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5.
verb ui5Framework:AbstractResolver     at Registry.extractPackage (C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\npm\Registry.js:26:10)
verb ui5Framework:AbstractResolver     at async C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\npm\Installer.js:93:6
verb ui5Framework:AbstractResolver     at async Installer._synchronize (C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\npm\Installer.js:139:4)
verb ui5Framework:AbstractResolver     at async Installer.installPackage (C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\npm\Installer.js:68:4)
verb ui5Framework:AbstractResolver     at async C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\Sapui5Resolver.js:39:23

⚠️  Process Failed With Error

Error Message:
Resolution of framework libraries failed with errors:
Failed to resolve library sap.f: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5.
Failed to resolve library sap.m: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5.
Failed to resolve library sap.ui.core: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5.    
Failed to resolve library themelib_sap_fiori_3: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5.

Stack Trace:
Error: Resolution of framework libraries failed with errors:
Failed to resolve library sap.f: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5.
Failed to resolve library sap.m: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5.
Failed to resolve library sap.ui.core: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5.    
Failed to resolve library themelib_sap_fiori_3: Failed to extract package @sapui5/distribution-metadata@1.96.5: No matching version found for @sapui5/distribution-metadata@1.96.5.
    at Sapui5Resolver.install (C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\ui5Framework\AbstractResolver.js:164:10)
    at async Object.generateDependencyTree (C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\translators\ui5Framework.js:188:29) 
    at async Object.generateProjectTree (C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\node_modules\@ui5\project\lib\normalizer.js:40:24)
    at async Object.handleBuild [as handler] (C:\Users\**\openui5-sample-app\node_modules\@ui5\cli\lib\cli\commands\build.js:136:15)

If you think this is an issue of the UI5 Tooling, you might report it using the following URL: https://github.com/SAP/ui5-tooling/issues/new/choose
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command npm run build" terminated with exit code: 1.
matz3 commented 2 years ago

@faow thanks for reaching out to us! The SAPUI5 version 1.96.5 was missing and should now be available via UI5 Tooling. Could you please check again?

faow commented 2 years ago

@matz3 it's working now - thanks!