0
Creating an optimized production build ...
glob error [Error: EPERM: operation not permitted, scandir 'C:\Users\LENOVO\Application Data'] {
  errno: -4048,
  code: 'EPERM',
  syscall: 'scandir',
  path: 'C:\\Users\\LENOVO\\Application Data'
}
Failed to compile.

Error: EPERM: operation not permitted, scandir 'C:\Users\LENOVO\Application Data'

It is throwing the following errors - I have tried removing the node_modules folder, removing the cache, tried to run it in administrator mode, building it again but none of them worked and the interesting thing is that the folder (Application Data) that it is trying to access doesn't even exist in the directory.

4
  • Please provide enough code so others can better understand or reproduce the problem. Commented Sep 17 at 13:33
  • are you running it from vs code terminal, try to run it from cmd with run as administrator Commented Sep 17 at 18:31
  • Yeah I tried it but it did not work for me Commented Sep 18 at 9:25
  • Maybe at least post your package.json? Commented Sep 23 at 11:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.