plone / cookiecutter-volto

Collection of cookiecutter templates for Volto
MIT License
0 stars 0 forks source link

suggestion for readme - cannot install existing project without `corepack enable` #13

Closed animus888 closed 6 months ago

animus888 commented 7 months ago

if you didn't run the command pipx run cookiecutter gh:plone/cookiecutter-volto in your shell and you just copied an existing project. Then even after having activated Node using nvm, you'll get an error if you try to rebuild frontend & backend using make install.

make install
bash: line 1: pnpm: command not found
make: *** [Makefile:36: install] Error 127 

It is necessary to execute the command corepack enable to get this working. Maybe it is possible, to react to the situation a user is working with an existing project and cover this in the make install command of the Makefile. If not, maybe there should be a hint in the readme - something like:

if you like to install an existing project,
just make sure you activated nvm & execute `corepack enable` 
before `make install`.