Skip to content

Angular CLI 9.0.0-next.9 throws error : Unable to copy assets: EPERM: operation not permitted #15816

@naveedahmed1

Description

@naveedahmed1

🐞 Bug report

After upgrading to Angular CLI 9.0.0-next.9 ng build throws below error

Unable to copy assets: EPERM: operation not permitted, copyfile 'D:\MyProject\ClientApp\src\assets\fonts' -> 'D:\MyProject\ClientApp\src\assets\fonts

Downgrading back to Angular CLI 9.0.0-next.8 fixes the issue, so it seems that the issue is with the Angular CLI 9.0.0-next.9

Command (mark with an x)

- [x ] build

Is this a regression?

Yes, the previous version in which this bug was not present was: Angular CLI 9.0.0-next.8

🔥 Exception or Error


Unable to copy assets: EPERM: operation not permitted, copyfile 'D:\MyProject\ClientApp\src\assets\fonts' -> 'D:\MyProject\ClientApp\src\assets\fonts'

🌍 Your Environment


Angular CLI: 9.0.0-next.9
Node: 10.16.3
OS: win32 x64
Angular: 9.0.0-next.10
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker

Package                                    Version
--------------------------------------------------------------------
@angular-devkit/architect                  0.900.0-next.9
@angular-devkit/build-angular              0.900.0-next.9
@angular-devkit/build-optimizer            0.900.0-next.9
@angular-devkit/build-webpack              0.900.0-next.9
@angular-devkit/core                       9.0.0-next.8
@angular-devkit/schematics                 9.0.0-next.8
@angular/cdk                               9.0.0-next.0
@angular/cli                               9.0.0-next.9
@angular/fire                              5.2.1
@angular/material                          9.0.0-next.0
@angular/pwa                               0.900.0-next.8
@ngtools/webpack                           9.0.0-next.9
@nguniversal/module-map-ngfactory-loader   9.0.0-next.2
@schematics/angular                        9.0.0-next.8
@schematics/update                         0.900.0-next.9
rxjs                                       6.5.3
typescript                                 3.5.3
webpack                                    4.41.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions