本文介绍了来自chokidar的错误(C:\):错误:EBUSY:资源繁忙或锁定,lstat'C:\ DumpStack.log.tmp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Angular并在ng服务期间出现错误:

Using Angular and during ng serve, I'm getting the error:

Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\DumpStack.log.tmp'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\pagefile.sys'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\swapfile.sys'

推荐答案

每当我使用VSCode并添加与组件​​相似的内容时,都会得到此提示:

I get this whenever I'm using VSCode and I add something similar to a component:

@Output() somename = new EventEmitter();

...,然后让VSCode自动导入支持模块.VSCode不会向现有的 @ angular/core 中添加 EventEmitter ,而是将新的导入添加到 protractor 中,这会导致错误.

...and I let VSCode auto-import the supporting module. Instead of adding EventEmitter to the existing @angular/core, VSCode adds a new import to protractor which causes the error.

如果遇到此错误,并且不记得最近的更改是在哪里进行的,请尝试在代码中从量角器" 中搜索

If you are getting this error and can't remember where the last changes were made, try searching for from 'protractor' in your code;

这篇关于来自chokidar的错误(C:\):错误:EBUSY:资源繁忙或锁定,lstat'C:\ DumpStack.log.tmp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 00:30