Closed LewkulitP closed 8 months ago
We also have the problem that the easy-ui5 generator does not start and throws the following error. Is there already a solution for this?
I get the error when I start the easy-ui5-generator in my WSL. I have already tried to update the easy-ui5-generator, but the error still occurs.
@petermuessig Do you know anything about this error? Are we doing something wrong?
Seems that the originally intended proxy support doesn't work - I need to verify this... Stay tuned...
I prepared a change now - seems that the behavior of the Node.js fetch
API changed. It doesn't use the GLOBAL_AGENT
configuration and therefore I switched to node-fetch
. In addition, I extended to proxy configuration to be also injected from the npm config. So also you initial scenario will work once merged and released.
Easy-Ui5 version:
(node:13636) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead. (Usenode --trace-deprecation ...
to show where the warning was created)---------´ │ 3.8.0 generator! │ ( _´U
_ ) ╰──────────────────────────╯ /A\ / | ~ | __'._.' ´|° ´ Y
Node.js: v21.6.2 yeoman-environment: 3.19.3 generator-easy-ui5: 3.8.0 home: C:\Users\\AppData\Roaming\npm\node_modules\generator-easy-ui5
pluginsHome: C:\Users\.npm_generator-easy-ui5\plugin-generators
Available generators: × An error occured while running easy-ui5:app#prompting Error easy-ui5 --plugins
Cannot read properties of null (reading '1')
OS/version:
Windows 10 Enterprise LTSC (Version 1809)
Steps to reproduce the problem:
What is the expected result?
It should be possible to create a project in the following steps.
What happens instead?
An error is displayed: "Failed to connect to GitHub to retrieve all available generators for "ui5-community" organization! Run with --verbose for details!"
Any other information? (attach screenshot if possible)
"npm install" is working.
"yo doctor" doesn't show any errors.:
It fails when trying to generate the easy-ui5 project:
I've tried also setting Windows environment variables - they are then also shown in the verbose output:
The proxy is set in .nprmc-file in the variables "PROXY", "HTTP_PROXY" and "HTTPS_PROXY":