question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to find SAPUI5 framework library

See original GitHub issue

Expected Behavior

I expect the sap.m library added to my UI5 application

Current Behavior

ui5 add sap.m throws this error (last lines of the error message)

http fetch GET 304 https://registry.npmjs.org/@sapui5%2fdistribution-metadata 293ms (from cache)
http fetch GET 200 https://registry.npmjs.org/@sapui5/distribution-metadata/-/distribution-metadata-1.85.2.tgz 15ms (from cache)
verb normalizer:ui5Framework:npm:Installer Promoting staging directory from C:\Users\tammen\.ui5\framework\staging\@sapui5-distribution-metadata-1.85.2 to C:\Users\tammen\.ui5\framework\packages\@sapui5\distribution-metadata\1.85.2...
verb normalizer:ui5Framework:npm:Installer Unlocking C:\Users\tammen\.ui5\framework\locks\package-@sapui5-distribution-metadata@1.85.2.lock

⚠️  Process Failed With Error

Error Message:
Failed to find SAPUI5 framework library sap.m: EPERM: operation not permitted, rename 'C:\Users\tammen\.ui5\framework\staging\@sapui5-distribution-metadata-1.85.2' -> 'C:\Users\tammen\.ui5\framework\packages\@sapui5\distribution-metadata\1.85.2'

Stack Trace:
Error: Failed to find SAPUI5 framework library sap.m: EPERM: operation not permitted, rename 'C:\Users\tammen\.ui5\framework\staging\@sapui5-distribution-metadata-1.85.2' -> 'C:\Users\tammen\.ui5\framework\packages\@sapui5\distribution-metadata\1.85.2'
    at D:\programs\node\node-v14.15.4-win-x64\node_modules\@ui5\cli\lib\framework\add.js:38:10
    at async Promise.all (index 0)
    at async module.exports (D:\programs\node\node-v14.15.4-win-x64\node_modules\@ui5\cli\lib\framework\add.js:34:2)
    at async Object.addCommand.handler (D:\programs\node\node-v14.15.4-win-x64\node_modules\@ui5\cli\lib\cli\commands\add.js:59:24)

This error is thrown for all libraries I added to the ui5.yaml when I run ui5 serve

Steps to Reproduce the Issue

Don’t really know how to reproduce it. Is it my node.js version (14.15.4) or the UI5 version 1.85.2, my @ui5/cli version or the fact that I’m behind a proxy?

Context

  • UI5 Module Version (output of ui5 --version when using the CLI): 2.9.0 (from D:\programs\node\node-v14.15.4-win-x64\node_modules\@ui5\cli\bin\ui5.js)
  • Node.js Version: v14.15.4
  • npm Version: 6.14.10
  • OS/Platform: Windows 10.0.18363
  • Browser (if relevant): not relevant
  • Other information regarding your environment (optional): I'm working behind a proxy, but npm install can install all packages from the internet

Log Output / Stack Trace

See above

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
matz3commented, Jan 28, 2021

Thanks for reporting this! The issue is related to https://github.com/SAP/ui5-project/pull/389 so downgrading to @ui5/cli v2.8.1 should solve it for now. We’ll have a look into it to find a solution.

1reaction
frankmjlaocommented, Jan 29, 2021

2.9.1 is working for me, thanks

On Fri, Jan 29, 2021 at 6:30 AM Helmut Tammen notifications@github.com wrote:

Thank you. It works with @ui5/cli 2.9.1

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SAP/ui5-tooling/issues/487#issuecomment-769442257, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARKGF5RKPAVA2DICKNM3CGTS4HQRDANCNFSM4WWCFCAA .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to find "resources/sap-ui-core.js" in the project
I'm unable to access the SAPUI5 libraries from the project placed on my desktop [i.e. src="resources/sap-ui-core.js"] in the below script.
Read more >
SAP UI5 application is unable to load custom UI5 library
I found this questions, while I had the same problem, here's how I fixed it: You need to add custom middleware (servestatic) in...
Read more >
Why was my Module Not Loaded Correctly? - SAPUI5 SDK
This problem is difficult to detect and can easily and proactively be avoided by omitting the module name in sap.ui.define . The following...
Read more >
openui5-error-collector - npm
UI5 library to collect all javascript errors. Latest version: 1.0.0, last published: 8 months ago. Start using openui5-error-collector in ...
Read more >
SAPUI5 Tutorial for Beginners: What is Fiori with Examples
What is SAP UI5: SAPUI5 is a set of libraries which is used to build Responsive web applications; Components of SAPUI5 architecture are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found