У меня есть проект Angular, в котором я внесу несколько изменений для клиента, когда я пытаюсь запустить npm install, я получил эту ошибку:
npm ERR! path D:\myClientProject\node_modules\.staging\material-design-icons-f132a428\av\1x_web\ic_music_video_white_36dp.png
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'D:\myClientProject\node_modules\.staging\material-design-icons-f132a428\av\1x_web\ic_music_video_white_36dp.png'
npm ERR! { [Error: EPERM: operation not permitted, unlink 'D:\myClientProject\node_modules\.staging\material-design-icons-f132a428\av\1x_web\ic_music_video_white_36dp.png']
npm ERR! cause:
npm ERR! { Error: EPERM: operation not permitted, unlink 'D:\myClientProject\node_modules\.staging\material-design-icons-f132a428\av\1x_web\ic_music_video_white_36dp.png'
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path:
npm ERR! 'D:\\myClientProject\\node_modules\\.staging\\material-design-icons-f132a428\\av\\1x_web\\ic_music_video_white_36dp.png' },
npm ERR! stack:
npm ERR! 'Error: EPERM: operation not permitted, unlink \'D:\\myClientProject\\node_modules\\.staging\\material-design-icons-f132a428\\av\\1x_web\\ic_music_video_white_36dp.png\'',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path:
npm ERR! 'D:\\myClientProject\\node_modules\\.staging\\material-design-icons-f132a428\\av\\1x_web\\ic_music_video_white_36dp.png',
npm ERR! parent: 'emaua-front' }
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).
Я уже пробовал несколько вещей, нобезуспешно:
- Запустите команду с cmd от имени администратора
- Дайте все разрешения в папке проекта
- Удалите package-lock.json
- Перезагрузите компьютер
- Удалена папка npm и npm-cache
Версия узла: 10.15.3
Версия NPM: 6.4.1
Кто-нибудь сталкивался с этой ошибкой?