Skip to content

ERROR in EPERM: operation not permitted, stat 'D:\System Volume Information' #10776

@ShadowQueen

Description

@ShadowQueen

Hello,

I have updated my project from Angular 5.2 to new version Angular 6. I have used Angular Update Guide - 5.2 -> 6.0 for Medium Apps. Everything went well. But I have an error if I try to use ng build, ng build --prod or ng s. The error message is ERROR in EPERM: operation not permitted, stat 'D:\System Volume Information'

Versions

Angular CLI: 6.0.0
Node: 8.9.1
OS: win32 x64
Angular: 6.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.6.0
@angular-devkit/build-angular 0.6.0
@angular-devkit/build-optimizer 0.6.0
@angular-devkit/core 0.6.0
@angular-devkit/schematics 0.6.0
@ngtools/webpack 6.0.0
@schematics/angular 0.6.0
@schematics/update 0.6.0
rxjs 6.1.0
typescript 2.7.2
webpack 4.6.0

Repro steps

  • Step 1
    execute command ng build or ng build --prod or ng s

Observed behavior

ng s
** Angular Live Development Server is listening on localhost: 4200, open your browser on http://localhost:4200/ **

Date: 2018-05-10T08:50:54.287Z
Hash: f2a2a12ef36617e0d5cc
Time: 22694ms
chunk {0} 0.js, 0.js.map () 1.53 MB [rendered]
chunk {main} main.js, main.js.map (main) 1.37 MB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 417 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 7.96 kB [entry] [rendered]
chunk {scripts} scripts.js, scripts.js.map (scripts) 381 kB [rendered]
chunk {styles} styles.js, styles.js.map (styles) 360 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 7.72 MB [initial] [rendered]

ERROR in EPERM: operation not permitted, stat 'D:\System Volume Information'
i 「wdm」: Failed to compile.

image

Stack:
"ReferenceError: error is not defined
at eval (eval at errors (http://localhost:4200/vendor.js:173286:5), :1:1)
at Object.errors (http://localhost:4200/vendor.js:173286:5)
at SockJS.onmessage (http://localhost:4200/vendor.js:173568:25)
at SockJS.EventTarget.dispatchEvent (http://localhost:4200/vendor.js:162610:20)
at http://localhost:4200/vendor.js:163323:16
at Array.forEach ()
at SockJS._transportMessage (http://localhost:4200/vendor.js:163321:17)
at WebSocketTransport.EventEmitter.emit (http://localhost:4200/vendor.js:162526:18)
at WebSocketTransport.ws.onmessage [as __zone_symbol__ON_PROPERTYmessage] (http://localhost:4200/vendor.js:165397:10)
at WebSocket.wrapFn (http://localhost:4200/polyfills.js:7940:39)"

Desired behavior

successful compile and build

Mention any other details that might be useful (optional)

I have not uninstalled rxjs-compat, because I have some third party dependencies that use the old version of rxjs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions