Unable to initialize UI5 CLI
ArnaudBuchholz opened this issue · 4 comments
I made a fresh install of an app based on @ui5/cli
and I cannot execute ui5
Expected Behavior
I can serve my app
Current Behavior
ui5
fails with message
Fatal Error: Unable to initialize UI5 CLI
Steps to Reproduce the Issue
Because of the stack trace, I suspect this is related to the missing APDDATA
environment variable.
Context
- @ui5/cli 3.1.2
- Node.js Version: 18.16.0
- npm Version: 9.5.1
- OS/Platform: Windows 11
- Browser (if relevant): N/A
- Other information regarding your environment (optional): VS Studio Code terminal
Log Output / Stack Trace
See screenshot
Important info : I confirm the behavior is specifc to the VS Studio Code terminal that does not define APPDATA
Having a fallback mechanism could help (and a better error message too) ;-)
Thanks for reporting. This looks like a regression in @pnpm/npm-conf
, which is a transitive dependency of update-notifier
, which we where considering to remove/replace before.
It's a fork of another project, where exactly this problem seems to have been fixed a while ago: kevva/npm-conf#7
But the issue got reintroduced in the fork later on: pnpm/npm-conf@ccf74c4#diff-b34f2f53ab94368c86775969fb604e8375abe03b6a378bdd09896fd91ac0a0d2R30
Since the fork has not enabled issues, we should report it to their main project in the coming days: https://github.com/pnpm/pnpm/issues
Reported via pnpm/pnpm#6659
I'll close this issue for the time being. Please let us know if this becomes more critical.
pnpm/pnpm#6659 got fixed and @ui5/cli
main
has been updated.
Your issue should be resolved with the next release of @ui5/cli