npm install give Error: EPERM, unlink
Solution 1
I got this problem, yes in Windows 10.
Solution?
To disable indexing of contents for that folder (the one containing the package.json)!!
On Windows Shell (File Manager), follow this steps:
- Right click on the folder with the error, choose 'Properties'
- Click the 'Advanced...' button.
- Uncheck the checkbox 'Allow files in this folder to have contents indexed in addition to file properties'.
- Press 'OK'.
- On the previous Properties dialog (visible again), press 'Apply'
- Check radio button 'Apply changes to this folder, subfolder and files'.
- Press 'OK'.
- (can take a while)
- Press 'OK' (to close properties dialog).
- Works!
Solution 2
In my case, it was permissions - probably in the node_modules tree, but just to be sure, I granted myself ownership and rights to the entire project tree which fixed the problem.
Right click on your project folder, select Properties, then the Security tab and click the Advanced button. Set yourself as the owner and grant yourself full permissions. Check "Replace all child object permission..." and OK.
Solution 3
My case was even simpler... a process was still using one of the files in the folder that required deletion. Killing the task responsible enabled me to install correctly.
user3275109
Updated on July 09, 2022Comments
-
user3275109 almost 2 years
using command npm install give the following error
Error: EPERM, unlink
System info: Bower version: 1.3.12 Node version: 0.10.35 OS : Windows8
I tried below workaround but nothing is worked out.
- clean bower cache
- uninstall bower
- Update decompress-zip using npm
- install the bower again
Its not worked for me please suggest me some solution