npm - EPERM: operation not permitted on Windows
问题 I ran npm config set prefix /usr/local After running that command, When trying to run any npm commands on Windows OS I keep getting the below. Error: EPERM: operation not permitted, mkdir \'C:\\Program Files (x86)\\Git\\local\' at Error (native) Have deleted all files from C:\\Users\\<your username>\\.config\\configstore\\ It did not work. Any suggestion ? 回答1: Running this command was my mistake. npm config set prefix /usr/local Path /usr/local is not for windows. This command changed the