0
votes

Below is the error I am facing. dharm@LAPTOP-877D2J39 MINGW64 /c/Windows/System32/contactmanager (master) $ npm run build

[email protected] build C:\Windows\System32\contactmanager react-scripts build

Failed to compile.

EPERM: operation not permitted, mkdir 'C:\Windows\System32\contactmanager\build'

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build: react-scripts build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\dharm\AppData\Roaming\npm-cache_logs\2018-12-06T10_22_25_ 475Z-debug.log

1

1 Answers

0
votes

EPERM: operation not permitted, mkdir

Seems like some permission issue, can you try opening the terminal as an administrator & try building the application. There should be an option to 'Run As Admin' when you right click on the bash icon.