SAP / generator-easy-ui5

Meta-generator various project types within the UI5 Universe
https://blogs.sap.com/2021/04/09/easy-ui5-3.0-from-community-contributions-to-community-plugins/
Apache License 2.0
243 stars 72 forks source link

Error: EACCES: permission denied, mkdir '/path/to/project/ProjectName' #84

Closed petermuessig closed 2 years ago

petermuessig commented 2 years ago

Mac Users Only

When global node_modules are being installed to /usr/local/lib, Easy-UI5 will fail to download and store the templates in the global NPM package and the following error occurs:

Error: EACCES: permission denied, mkdir '/path/to/project/ProjectName'
at Error (native)
at Object.fs.mkdirSync (fs.js:799:18)

To overcome the issue, the permissions for the Easy-UI5 NPM package in the global NPM modules need to be changed to rwx for everyone with the following command: chmod ugo+rwx /usr/local/lib/node_modules/generator-easy-ui5.

We should consider to provide a proper error message or use another location to install the templates to.