-
-
Notifications
You must be signed in to change notification settings - Fork 703
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
Unexpected non-whitespace character after JSON in @plone/volto #6528
Comments
@me-kell to create a Volto 17 project, you need to use For Volto 17 you should use node 20. |
I think our Node.js support policy should be more clear https://6.docs.plone.org/volto/contributing/version-policy.html#node-js, explicitly stating that Node.js 22 is not supported in Volto 17, only Node.js 18 and 20. @sneridagh can you confirm? |
yeah I agree too @wesleybl the issue appears to be caused by two factors:
nvm install 20
For Volto 17.x.x, you need to use volto-generator 7 or 8. Follow these steps to install the correct generator version: nvm use 20
npm cache clean --force
npm install -g @plone/generator-volto@8
yo @plone/volto my-volto-project This would resolve the problem successfully |
@me-kell to fix documentation, what is the URL of the instructions you followed? We definitely need to update the documentation for Install Plone with cookiecutter-plone-starter (deprecated) and Install Plone with Cookieplone to refer to the compatibility matrix in https://6.docs.plone.org/volto/contributing/version-policy.html#volto-generator-compatibility-with-volto-label. Are there other places? I created a new issue to track version compatibility in #6540. |
I followed the Install Plone with Cookieplone - Node.js. There it is stated "1. Install or update the supported LTS versions of Node.js, then activate the version supported in Volto. I would suggest to make an explicit link to https://6.docs.plone.org/install/create-project-cookieplone.html#prerequisites-for-installation and/or to https://6.docs.plone.org/volto/contributing/version-policy.html as well also to explicitly state which version is supported in the installation page. |
I'm just trying both to verify different installation steps. |
@me-kell please provide the steps you followed so we can reproduce the issue. |
@stevepiercy please see how to reproduce in original comment above. |
@me-kell OK, I followed those two steps before, then stopped, as you didn't provide steps to go further. Here's the output. $ npm install -g yo @plone/generator-volto
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm warn deprecated [email protected]: This package is no longer supported. Please use @npmcli/package-json instead.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated [email protected]: This package is no longer supported.
changed 1263 packages in 19s
145 packages are looking for funding
run `npm fund` for details
02:57:29 stevepiercy@Steves-MacBook-Pro ...Plone/documentation/atest 🐍 3.12.2 3.11.5 3.10.13 system ⬡ v20.10.0 6.0 ✘ ✹ ✭ 19s
$ yo @plone/volto volto
This version of the generator works for Volto version 18.x.x.
If you want to generate a project for another version of Volto
then use the appropriate version.
See https://6.docs.plone.org/volto/contributing/version-policy.html#volto-generator-compatibility-with-volto-label.
Getting latest Volto version
Using latest released Volto version: 18.4.0
? Would you like to add addons? (false) Where did you find those two instructions in the first place? The only place I found |
@stevepiercy You'll find those instructions in Plone Training 2024 - Volto Hands-On - Set Up Volto Project and in Yeoman Volto App Generator - Creating a new Volto project. |
@me-kell thank you! I just opened an issue in Training plone/training#906 to track its curation for the first link. This is a problem every year, where code and processes change while the training lags behind, especially if it was not conducted within the last year. For the second link, there are two different usages that we should update, but I don't know to what. npm init yo @plone/volto
yo @plone/volto I'm happy to update the |
Version Policy - Node.js says:
And the template generates a package.json with
Is this ok? |
I don't know, but that's a good question, which is being discussed in #6528 (comment). |
@me-kell Volto 18 is no longer tested with node 18. So I think it would be good to change that. You can make a PR! |
Which versions are known to work with
@plone/volto
?Describe the bug
To Reproduce
Software (please complete the following information):
The text was updated successfully, but these errors were encountered: