Environment
- windows 7 operating system
- npm 5.5.1
Business background
when installing and deleting packages through npm,
items are placed on the desktop, that is,
often reports this error in the system disk
npm install --save-dev file-loader
// ,,
Error: EPERM: operation not permitted, scandir "....
......`
Please try running this command again as root/Administrator.
temporary measures to deal with
-
git bash
is set to start as an administrator -
npm cache clean-force
- Delete
npm-cache
folder under the user directory
- and then reinstall it
question
what can be done to eradicate this problem?
it"s really annoying to delete cache files every time you install a package