EPERM: operation not permitted, lstat when running ng build

后端 未结 7 940
予麋鹿
予麋鹿 2021-01-17 19:30

I\'m getting an ERROR when trying to run ng build on my angular 4 app.

EPERM: operation not permitted, lstat \'\'
<         


        
7条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-17 20:08

    This has happened in my ASP.NET projects. For me this has happened for one of two reasons.

    1. This can be a permission problem so you need to run Command Prompt as Admin.

      a. Press win to open the start menu. Type in cmd to search for Command Prompt.

      b. Press ctrl + shift + enter to launch Command Prompt as administrator.

    2. This can happen when you build your web project in Visual Studio(or another IDE) and it is currently running.

      a. This is a simple fix click the stop debugging and then try 'ng build' again.

提交回复
热议问题