Closed texttechne closed 1 year ago
- UI5 Module Version (output of
ui5 --version
when using the CLI):8.19.3
I assume this is actually your npm version? Could you please double check the output of the command ui5 --version
?
What terminal application are you using on Windows? Is it possibly a Subsystem for Linux (WSL)?
Please also attach the log output of your command when running it with the --log-level silly
flag.
you're right, that was the npm version ๐
App that is running on 1.111.0
and switched to 1.112.0
:
3.0.4
ui5 serve
run: ui5-start.logNew App:
3.1.3
Downgrading to 3.1.2
works; well, it behaves as the first app did: on the first run it fails, on the second run everything gets installed.
Since the 3.1.3
release happened today / yesterday, this would explain why we ran into this issue first: we upgraded this test project today / yesterday.
Hi @texttechne,
I was not able to reproduce the issue locally, but it seems that it might be something with the npm caching on Windows.
Would you mind running the following command and then try ui5 serve
to see whether that's the case:
npm cache clean --force
Meanwhile, I'd continue to see whether there's something I could find within the code.
Cheers
Thank you for providing the logs.
In addition to what @d3xter666 wrote, could you also please try renaming the XXX\.ui5\framework
directory to something else like 'XXX\.ui5\framework_backup
and try running the ui5 command in your new app (using UI5 CLI 3.1.3) again?
This will cause all framework dependencies to be re-downloaded, but hopefully does not produce the error.
@RandomByte
In addition to what @d3xter666 wrote, could you also please try renaming the XXX.ui5\framework directory to something else like 'XXX.ui5\framework_backup and try running the ui5 command in your new app (using UI5 CLI 3.1.3) again?
Tried that already yesterday (it was so obvious ๐), but today again. Result:
sap.ui.fl
, sap.esh.search.ui
, sap.ushell
)I also remember that I already found this problem with the first installation something like half a year ago. Since it fixes itself on the second install, I never bothered to create a ticket for that...
@RandomByte @d3xter666 are you working with Windows? It definitely seems to be related to the OS, especially when unlink
is mentioned...
Would you mind running the following command and then try ui5 serve to see whether that's the case: npm cache clean --force
So I did the following
npm cache clean --force
node_modules
folder.ui5/framework
npm install
First time 31 installations fail, from the second run onwards 2 installations fail (sap.ui.fl
, sap.esh.search.ui
).
Hi @texttechne,
Unfortunatelly, I'm still unable to reproduce the issue ๐
Regarding the Windows machine, no, we do not have Windows. We try to reproduce the issue on VMs.
GIven the fact that some packages got "unlocked" leads me to the conclusion that there might be a separate process in there that migh be locking those resources and had not released them as of the time of unlinking.
I'm wondering of your setup. Could you be able to provide your package.json
and ui5.yaml
, se we could see the dependencies and the order of operations? Is there some middleware for the server for transpilation, for example?
I was wondering also whether the Terminal/Command prompt is important in that case. Would you share which terminal are you using on Windows:
Cheers
Hi @d3xter666, after some more research and trying one project on an non-company Windows machine: it works without any installation issues. This as well as the fact that noone else (despite my colleagues) is experiencing this issue, leads me to think that the problem is due to our Antivirus software. It's unfortunately not that easy to directly verify that assumption, but I'll have a meeting with our IT guys later to ascertain it.
If the assumption is true then there's nothing you can do probably. Shall we close the issue for now and reopen if the assumption is wrong?
Hi @texttechne thanks a lot for your response and clarification. Let's close the issue for now and feel free to re-open it any time when we can do some improvements.
@RandomByte Finally, I was able to test it and it is indeed FortiClient which interfers here. We've defined an exclusion rule now and it works like a charm.
Thanks for helping tracking this down.
@texttechne Thanks a lot for providing this feedback. Awesome that it works for you now.
Expected Behavior
When starting the app, missing library packages get installed automatically. This should run without any error.
Current Behavior
When starting:
Steps to Reproduce the Issue
ui5.yaml
Context
Happened to a colleague of mine and to me on different machines. We also used different projects.
ui5 --version
when using the CLI):8.19.3
16
and18
Windows