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.
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: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.