为什么我在系统中第一次运行 react js 项目时会收到此错误消息? [英] Why I am getting this error message when I run react js project first time in my system?
问题描述
- 当我运行
npm start
时,我收到以下错误消息:
<块引用>
来自 chokidar (C:) 的错误:错误:EBUSY:资源繁忙或锁定,lstat 'C:\hiberfil.sys'来自 chokidar (C:) 的错误:错误:EBUSY:资源繁忙或锁定,lstat 'C:\pagefile.sys'来自 chokidar (C:) 的错误:错误:EBUSY:资源繁忙或锁定,lstat 'C:\swapfile.sys'来自 chokidar (C:\node_modules) 的错误:错误:EBUSY:资源繁忙或锁定,lstat 'C:\hiberfil.sys'来自 chokidar (C:\node_modules) 的错误:错误:EBUSY:资源繁忙或锁定,lstat 'C:\pagefile.sys'来自 chokidar (C:\node_modules) 的错误:错误:EBUSY:资源繁忙或锁定,lstat 'C:\swapfile.sys'来自 chokidar (C:\node_modules) 的错误:错误:EBUSY:资源繁忙或锁定,lstat 'C:\hiberfil.sys'来自 chokidar (C:\node_modules) 的错误:错误:EBUSY:资源繁忙或锁定,lstat 'C:\pagefile.sys'来自 chokidar (C:\node_modules) 的错误:错误:EBUSY:资源繁忙或锁定,lstat 'C:\swapfile.sys'
请按照以下步骤操作:
- 删除
node_modules
文件夹. - 运行
npm install
. - 运行
npm cache clean
.
*前两个步骤对我有用.
- When I run
npm start
, I get this error message:
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' Error from chokidar (C:\node_modules): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys' Error from chokidar (C:\node_modules): Error: EBUSY: resource busy or locked, lstat 'C:\pagefile.sys' Error from chokidar (C:\node_modules): Error: EBUSY: resource busy or locked, lstat 'C:\swapfile.sys' Error from chokidar (C:\node_modules): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys' Error from chokidar (C:\node_modules): Error: EBUSY: resource busy or locked, lstat 'C:\pagefile.sys' Error from chokidar (C:\node_modules): Error: EBUSY: resource busy or locked, lstat 'C:\swapfile.sys'
follow the below steps:
- Delete
node_modules
folder. - run
npm install
. - run
npm cache clean
.
*first 2 steps worked for me.
这篇关于为什么我在系统中第一次运行 react js 项目时会收到此错误消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!