1

I created a new file and when I create a new jhipster project I got this error. How can I fix it?

error An unexpected error occurred: "EACCES: permission denied, mkdir '/home/chebbi/node_modules/@angular-cli'".
info If you think this is a bug, please open a bug report with the information provided in "/home/chebbi/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error jhipster

ERROR! yarn install failed.

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
Mat
  • 631
  • 3
  • 10
  • 21

1 Answers1

0

It's look like a permission problem. You can try

sudo chmod -R 777 /home/chebbi/node_modules/
holyknight
  • 315
  • 1
  • 3
  • 13
  • it gives me this error now : error An unexpected error occurred: "EPERM: operation not permitted, utime '/home/chebbi/node_modules/abbrev/LICENSE'". info If you think this is a bug, please open a bug report with the information provided in "/home/chebbi/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. Error jhipster ERROR! yarn install failed. – Mat Nov 22 '17 at 09:44
  • try "npm cache clean" (without the quotes) – holyknight Nov 24 '17 at 03:58