Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error An unexpected error occurred: "EACCES: permission denied

Tags:

reactjs

Iam getting an error while running npm install for react application..error An unexpected error occurred: "EACCES: permission denied, unlink '/home/ats/react-app/myapp/node_modules/@babel/helper-module-imports/LICENSE'".Can someone help me sort this error out?

like image 364
Abdulla Thanseeh Avatar asked Oct 09 '18 05:10

Abdulla Thanseeh


3 Answers

I had the same problem and I solved it like this:

  • Remove node_modules folder of your project manually.

  • Then yarn install or npm install.

like image 94
reza makhdomi Avatar answered Oct 08 '22 13:10

reza makhdomi


Execute as sudo if you are using Linux.

like image 30
Sergio Vasconcelos Avatar answered Oct 08 '22 13:10

Sergio Vasconcelos


Try changing the folder permissions to have the correct ones. If you consider there is no drawback to have the folder with full permissions this command should solve your problem:

sudo chmod -R 777 folderName
like image 2
Leo Avatar answered Oct 08 '22 13:10

Leo