'error An unexpected error occurred: "EACCES: permission denied
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?
Solution 1:[1]
I had the same problem and I solved it like this:
Remove
node_modulesfolder of your project manually.Then
yarn installornpm install.
Solution 2:[2]
Execute as sudo if you are using Linux.
Solution 3:[3]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | ×¡×˜× ×œ×™ ×’×¨×•× ×Ÿ |
| Solution 2 | Sergio Vasconcelos |
| Solution 3 | Leo |
