Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
462 views
in Technique[技术] by (71.8m points)

javascript - EPERM:不允许操作,运行ng build时执行lstat(EPERM: operation not permitted, lstat when running ng build)

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

(尝试在我的angular 4应用程序上运行ng build时出现错误。)

EPERM: operation not permitted, lstat '<dist directory>'

Has anyone encountered this issue?

(有没有人遇到这个问题?)

TIA

(TIA)

  ask by Alvin Reyes translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I had the same problem.

(我有同样的问题。)

As @Mauricio De La Quintana said, the problem is permission.

(正如@Mauricio De La Quintana所说,问题是允许。)

In my case (Windows environment), I solved the problem by removing the read-only property from the Repos folder and adding write permission to the Everyone user.

(在我的情况下(Windows环境),我通过从Repos文件夹中删除了只读属性并向Everyone用户添加了写权限来解决了该问题。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...