npm install -g expo-cli isn't installing. unlink file name

0

I'm trying to install expo-cli on my Windows 10 pc but I'm getting error again and again.

npm ERR! path C:\Users\USER\AppData\Roaming\npm\node_modules.staging\safe-buffer-033595a4\README.md npm ERR! code EPERM npm ERR! errno -4048 npm ERR! syscall unlink npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\USER\AppData\Roaming\npm\node_modules.staging\safe-buffer-033595a4\README.md' npm ERR! { [Error: EPERM: operation not permitted, unlink 'C:\Users\USER\AppData\Roaming\npm\node_modules.staging\safe-buffer-033595a4\README.md'] npm ERR! cause: npm ERR! { Error: EPERM: operation not permitted, unlink 'C:\Users\USER\AppData\Roaming\npm\node_modules.staging\safe-buffer-033595a4\README.md' npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'unlink', npm ERR! path: npm ERR! 'C:\Users\USER\AppData\Roaming\npm\node_modules\.staging\safe-buffer-033595a4\README.md' }, npm ERR! stack: npm ERR! 'Error: EPERM: operation not permitted, unlink \'C:\Users\USER\AppData\Roaming\npm\node_modules\.staging\safe-buffer-033595a4\README.md\'', npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'unlink', npm ERR! path: npm ERR! 'C:\Users\USER\AppData\Roaming\npm\node_modules\.staging\safe-buffer-033595a4\README.md', npm ERR! parent: 'expo-cli' } 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).

Harshit Dugar

Posted 2019-10-15T15:51:54.053

Reputation: 1

No answers