1. Error reporting
Error: EPERM: operation not permitted, scandir 'F:\t-plan-mag-ui\mag-ui\build
2. Error reporting scene
When using the npm dependency package rimraf to delete the compiled files, an error occurs! ! !
3. Cause of the problem
The main reason is that opening a powershell window in a folder does not have permission to operate.
4. Solutions
4.1 Solution 1
Run with administrative privileges! ! !
4.2 Solution 2
-
Windows+R key, open [Run];
-
Enter【gpedit.msc】;
-
Open Group Policy;
-
Computer Configuration --> Windows Settings --> Security Settings --> Local Policies --> Security Options
-
User Account Control - Approve to run all administrators in administrator mode
-
Disabled --> OK
-
Reopen the command window to execute the command, and no error will be reported.