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?
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
.
Execute as sudo if you are using Linux.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With