Troubleshooting Generator Failing with EACCESS on Linux
This problem appears when generating an application in a Linux environment in a folder that does not have access rights set so that the generator can write. In that case, after entering the project information, the following error message appears:
Error: EACCESS: permission denied, open '/generated/.yo-rc.json' at Object.openSync ...
To solve the issue, change the access rights of the folder where you want to generate the application and then run the generator again:
# do this in the folder where you are calling the generator.sh script $ chmod o+w . # call the generator $ ./generator.sh -v 4.4.0-SNAPSHOT
Note that the generated files belong to an internal user 501
which is not the current user. If this is an issue, the generated files can be associated with the current user using the following command:
# Change the generated files ownership (replace `you.yourgroup` with your user characteristics) $ sudo chown -R you.yourgroup .