-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
Volto Generator 8.0.2 fails to create a new Volto project #5436
Comments
Happens for me also. Seems related to #5406 -- even if I have yo 4.x installed globally, @plone/generator-volto now uses 5.x, and yeoman/generator#1294 says it no longer includes install actions by default. /cc @sneridagh |
We can change the helper with a command exec. It's s oneliner and an import from the standard lib. Eventually this package has to be converted to ESM, since yo has moved to it. |
@sneridagh @davisagli I have to admit I don't really understand what skip-install is supposed to do. got me this output: When I went inside the created project and entered yarn install it starting installing. As such to me it would seem that it would work even without trying to install something since the dependency EDIT: I see that it copies the project also inside src/addons so it's not ok to simply comment that line |
@ichim-david the generator run "yarn install" by default, once the generator ended. It seems they deprecated the built-in (
volto/packages/scripts/backportpr.js Line 69 in 9e4a044
|
@sneridagh I've added #5438 I still think there is an issue with the generator since it adds an addon with the same |
This is actually on purpose apparently although from the docs it would appear only to be done so in the cookie-cutter template, instead, it is also applied when using only the generator. |
With Yo 4.3.1 and 5.0.0 when running the following install commands:
npm install -g yo
npm i @plone/generator-volto
yo @plone/volto myproject
The project is failing to generate due to this exit error:
An error occured while running @plone/volto:app#install
Error @plone/volto volto-latest-generator
this.yarnInstall is not a function
The text was updated successfully, but these errors were encountered: