SAP / generator-easy-ui5

Meta-generator various project types within the UI5 Universe
https://blogs.sap.com/2021/04/09/easy-ui5-3.0-from-community-contributions-to-community-plugins/
Apache License 2.0
243 stars 72 forks source link

Can't create Easy-UI5 project behind corporate proxy #142

Closed LewkulitP closed 8 months ago

LewkulitP commented 8 months ago

Easy-Ui5 version:

(node:13636) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created)

 _-----_
|       |    ╭──────────────────────────╮
|--(o)--|    │  Welcome to the easy-ui5 │

---------´ │ 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:

  1. Step 1 run "yo easy-ui5 project"

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.: yeoman doctor

It fails when trying to generate the easy-ui5 project: yeoman error yeoman error verbose without systemvariables

I've tried also setting Windows environment variables - they are then also shown in the verbose output: yeoman error verbose with systemvariables

The proxy is set in .nprmc-file in the variables "PROXY", "HTTP_PROXY" and "HTTPS_PROXY": yeoman npmrc user

Kasde96 commented 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. image I have already tried to update the easy-ui5-generator, but the error still occurs.

Kasde96 commented 8 months ago

@petermuessig Do you know anything about this error? Are we doing something wrong?

petermuessig commented 8 months ago

Seems that the originally intended proxy support doesn't work - I need to verify this... Stay tuned...

petermuessig commented 8 months ago

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.