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

instantiatedGenerator.run is not a function #380

Open
sergiobaiao opened this issue May 24, 2024 · 1 comment
Open

instantiatedGenerator.run is not a function #380

sergiobaiao opened this issue May 24, 2024 · 1 comment

Comments

@sergiobaiao
Copy link

I'm trying to run generator-alfresco-adf-app on my server, but when i can yo alfresco-adf-app it shows this:

root@i4:/files/adf# DEBUG=yeoman:generator yo alfresco-adf-app
yeoman:generator Queueing initializing in initializing +0ms
yeoman:generator Queueing prompting in prompting +3ms
yeoman:generator Queueing writing in writing +0ms
yeoman:generator Queueing install in install +0ms
yeoman:generator Running initializing +7ms
yeoman:generator An error occured while running initializing TypeError: instantiatedGenerator.run is not a function
at module.exports.composeWith (/usr/lib/node_modules/generator-alfresco-adf-app/node_modules/generator-alfresco-common/node_modules/yeoman-generator/lib/index.js:585:29)
at module.exports.initializing (/usr/lib/node_modules/generator-alfresco-adf-app/app/index.js:67:10) +1s
Error alfresco-adf-app

instantiatedGenerator.run is not a function
┌───────────────────────────────────────────────────┐
│ yo update check failed │
│ Try running with sudo or get access │
│ to the local update config store via │
│ sudo chown -R $USER:$(id -gn $USER) /root/.config │
└───────────────────────────────────────────────────┘

I'm running this as root, so i'm ignoring permissions errors.

node -v
v20.13.1

npm -v
10.5.2

ls -g generator-alfresco-adf-app
/usr/lib
└── [email protected]

npm ls -g yo
/usr/lib
└── [email protected]

@MattioliLeo
Copy link

see yeoman/generator-generator#258
Workaround: downgrade yo to get it working, for example
npm install -g [email protected] generator-generator

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