Error: EPERM: operation not permitted (operation permission problem)

Problem: After using vue init webpack test to create a project, the creation of the project fails, and an error is reported: Error: EPERM: operation not permitted, mkdir

Cause and Solution

The main reason is that there is no operation permission to open the cmd window in the folder.
Choose any command line window to run as an administrator to solve the problem.

Find the location of the node folder, right click on the properties and check the permissions

It is a win10 system administrator account but does not have administrator privileges and must manually confirm the privileges every time

Solution:

Press the Windows+R key to open "Run", and then enter " gpedit.msc " to open the group policy, which can also be opened in the control panel.
In the group policy, find "Computer Configuration" - "Windows Settings" - "Security Settings" - "Local Policies" - "Security Options", and carefully look for "User Account Control - Approved to run all in administrator mode" in "Security Options" Administrator" item, disable this item

 

Modify permissions (other references):

Win10 adds right-click to open cmd and Powershell windows (administrator/non-administrator)

Guess you like

Origin blog.csdn.net/weixin_50114203/article/details/125373401