ng build 나 serve 하면
기존 outDir 경로에 무언가를 하는것 같다.
해당 폴더를 강제로 삭제해도 지워지지도 않고
operation not permitted 메세지만 줄기차게 나온다.
이것저것 해봤으나 안된다.
컴퓨터 재부팅후 폴더 삭제가 가능 했다.
EPERM: operation not permitted, lstat 'D:\workspace\sts\ar-cms-client\dist\assets\images\flags\16'
Error: EPERM: operation not permitted, lstat 'D:\workspace\sts\ar-cms-client\dist\assets\images\flags\16'
at Object.fs.lstatSync (fs.js:961:11)
at Object.lstatSync (D:\workspace\sts\ar-cms-client\node_modules\graceful-fs\polyfills.js:297:22)
at rimrafSync (D:\workspace\sts\ar-cms-client\node_modules\fs-extra\lib\remove\rimraf.js:237:18)
at options.readdirSync.forEach.f (D:\workspace\sts\ar-cms-client\node_modules\fs-extra\lib\remove\rimraf.js:291:39)
at Array.forEach (<anonymous>)
at rmkidsSync (D:\workspace\sts\ar-cms-client\node_modules\fs-extra\lib\remove\rimraf.js:291:26)
at rmdirSync (D:\workspace\sts\ar-cms-client\node_modules\fs-extra\lib\remove\rimraf.js:281:7)
at fixWinEPERMSync (D:\workspace\sts\ar-cms-client\node_modules\fs-extra\lib\remove\rimraf.js:167:5)
at rimrafSync (D:\workspace\sts\ar-cms-client\node_modules\fs-extra\lib\remove\rimraf.js:260:26)
at options.readdirSync.forEach.f (D:\workspace\sts\ar-cms-client\node_modules\fs-extra\lib\remove\rimraf.js:291:39)
at Array.forEach (<anonymous>)
at rmkidsSync (D:\workspace\sts\ar-cms-client\node_modules\fs-extra\lib\remove\rimraf.js:291:26)
at rmdirSync (D:\workspace\sts\ar-cms-client\node_modules\fs-extra\lib\remove\rimraf.js:281:7)
at fixWinEPERMSync (D:\workspace\sts\ar-cms-client\node_modules\fs-extra\lib\remove\rimraf.js:167:5)
at rimrafSync (D:\workspace\sts\ar-cms-client\node_modules\fs-extra\lib\remove\rimraf.js:260:26)
at options.readdirSync.forEach.f (D:\workspace\sts\ar-cms-client\node_modules\fs-extra\lib\remove\rimraf.js:291:39)