javascript - 为什么我在系统中第一次运行 react js 项目时收到此错误消息?
问题描述
- 当我运行时
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:资源繁忙或锁定,来自 chokidar (C:\node_modules) 的 lstat 'C:\swapfile.sys' 错误:错误:EBUSY:资源繁忙或锁定,来自 chokidar (C:\node_modules) 的 lstat 'C:\hiberfil.sys' 错误:错误:EBUSY:资源繁忙或锁定,lstat 'C:\pagefile.sys'来自 chokidar (C:\node_modules) 的错误:错误:EBUSY:资源繁忙或锁定,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.
推荐阅读
- c++11 - 更大的作用是什么
在集? - reactjs - reactjs - 如何在formik中将状态值传递给初始值
- pom.xml - 错误:pom.xml 文档中没有这样的文件或目录
- amazon-sumerian - 减少 Sumerien IDE 更新时间滞后的方法
- javascript - 以函数方式从对象数组中的对象数组返回值
- c# - 任何字符组的正则表达式,范围从最小值到最大值
- php - 通过在php中指定第一个和最后一个位置返回字符串的一部分
- sql-server - 间隔至少 1 分钟后选择记录
- keyboard - StatefulWidget 页面在键盘打开时重新创建
- java - 管理删除jackrabbit工作区的替代方法