Could not delete _logs folder from npm-cache folder


(Vivek Manikandan D) #1

while deleting the npm-cache folder from C:\Users<UserName>AppData\Roaming\
I am getting the below error. Please help

npm ERR! errno -4048
npm ERR! syscall scandir
npm ERR! Error: EPERM: operation not permitted, scandir ‘C:\Users<UserName>\AppData\Roaming\npm-cache_logs’
npm ERR! { Error: EPERM: operation not permitted, scandir ‘C:\Users<UserName>\AppData\Roaming\npm-cache_logs’
npm ERR! stack: ‘Error: EPERM: operation not permitted, scandir ‘C:\Users\\AppData\Roaming\npm-cache\_logs’’,
npm ERR! errno: -4048,
npm ERR! code: ‘EPERM’,
npm ERR! syscall: ‘scandir’,
npm ERR! path: ‘C:\Users\\AppData\Roaming\npm-cache\_logs’ }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It’s possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
glob error { Error: EPERM: operation not permitted, scandir ‘C:\Users<UserName>\AppData\Roaming\npm-cache_logs’
stack: ‘Error: EPERM: operation not permitted, scandir ‘C:\Users\\AppData\Roaming\npm-cache\_logs’’,
errno: -4048,
code: ‘EPERM’,
syscall: ‘scandir’,
path: ‘C:\Users\\AppData\Roaming\npm-cache\_logs’ }
npm ERR! Callback called more than once.


(Vivek Manikandan D) #2

After restarting the system , this issue fixed


(system) #3

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.