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
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!
You don't have the permissions necessary to remove that file. Somehow you have caused npm/bower to do things that conflict with the default windows permission system.
It would probably be simplest to remove bower
and npm
and reinstall them, and then update your npm
to the latest version following the instructions here https://github.com/npm/npm/wiki/Troubleshooting
For a quick fix that might help, try this in a CMD window (you may need to start it as Administrator):
cd C:\users\path\temp
cacls . /T /E /C /G Everyone:F
That grants Everyone
Full Control
over your temp directory, which is potentially a security risk. However, it should make it possible for npm
and bower
to clean up old files.
I recommend you try reinstalling node
, npm
, and bower
.