Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in generating sapui5 project using node 20 #85

Open
satyadwivedi opened this issue Sep 29, 2024 · 11 comments
Open

Error in generating sapui5 project using node 20 #85

satyadwivedi opened this issue Sep 29, 2024 · 11 comments
Assignees

Comments

@satyadwivedi
Copy link

Easy-Ui5 version:

Run yo easy-ui5 --plugins to print all relevant version strings

image

Steps to reproduce the problem:

  1. Step 1 - yo easy-ui5 project
  2. Step 2 - choose project

What is the expected result?

Cannot find package 'chalk' imported from /Users/satyadwivedi/.npm/_generator-easy-ui5/plugin-generators/generator-ui5-project/generators/project/index.js
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'chalk' imported from /Users/satyadwivedi/.npm/_generator-easy-ui5/plugin-generators/generator-ui5-project/generators/customcontrol/index.js
at new NodeError (node:internal/errors:406:5)
at packageResolve (node:internal/modules/esm/resolve:789:9)
at moduleResolve (node:internal/modules/esm/resolve:838:20)
at defaultResolve (node:internal/modules/esm/resolve:1043:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:228:38)
at ModuleWrap. (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36)
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'chalk' imported from /Users/satyadwivedi/.npm/_generator-easy-ui5/plugin-generators/generator-ui5-project/generators/customcontrol/index.js

Any other information? (attach screenshot if possible)

image
@satyadwivedi satyadwivedi changed the title Error in generating sapui5 proecjt using node 20 Error in generating sapui5 project using node 20 Sep 29, 2024
@nicoschoenteich
Copy link
Collaborator

Hi @satyadwivedi, can you check if the npm install in your local directory of the generator-ui5-project was successful - do the node_modules exist?

@satyadwivedi
Copy link
Author

yes, node_modules exist
image

@nicoschoenteich
Copy link
Collaborator

Hi @satyadwivedi, sorry, I should have been more clear. I meant in the /Users/satyadwivedi/.npm/_generator-easy-ui5/plugin-generators/generator-easy-ui5/ directory, not the newly created project directory.

@satyadwivedi
Copy link
Author

image

generator-easy-ui5 dosen't exist

@nicoschoenteich
Copy link
Collaborator

Whoops, the generator-ui5-project/ I mean (inside plugin-generators/).

@satyadwivedi
Copy link
Author

generator-ui5-projec exist inside plugin-generators/

image

@nicoschoenteich
Copy link
Collaborator

Does it contain node_modules?

@satyadwivedi
Copy link
Author

I can't node_modules inside generator-ui5-project folder.

Image

@nicoschoenteich
Copy link
Collaborator

Can you run npm install in .../generator-ui5-project and see if that fixes the issue?

@satyadwivedi
Copy link
Author

now I can see the node_modules
Image

but different error this time -
Image

@nicoschoenteich
Copy link
Collaborator

Can you try to delete the /Users/satyadwivedi/.npm/_generator-easy-ui5/plugin-generators/generator-ui5-project/ and run the initial command again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants