繁体   English   中英

为什么反应应用程序中的 node_modules/.cache/babel-loader 文件夹中有数百个 json 文件?

[英]Why are Hundreds of json files in the node_modules/.cache/babel-loader folder in a react app?

使用 create-react-app 设置反应应用程序。 一切正常。 问题:在 vscode 上,git 选项卡总是在文件夹node_modules/.cache/babel-loader上显示数百个 json 文件的修改和创建。 这在我以前的项目中没有发生。

我试过重新安装 babel 没有结果。 删除文件没有任何作用。

文件夹中的文件看起来像休耕: 0aab1329ff345c34fe844d530b69ce5d.json

如果您只看到创建的文件,那么您应该将node_modules添加到您的.gitignore文件中。 如果您看到修改过的文件,那么您已经将这些文件提交给源代码控制。 您应该使用git rm删除它们,并将node_modules添加到.gitignore

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM