[英]Why are Hundreds of json files in the node_modules/.cache/babel-loader folder in a react app?
Set up a react app with create-react-app.使用 create-react-app 设置反应应用程序。 Everything works fine.一切正常。 Problem: On vscode, the git tab is always showing hundreds of json files modification and creation on the folder node_modules/.cache/babel-loader
.问题:在 vscode 上,git 选项卡总是在文件夹node_modules/.cache/babel-loader
上显示数百个 json 文件的修改和创建。 This did not happen on my previous projects.这在我以前的项目中没有发生。
I've tried reinstalling babel with no results.我试过重新安装 babel 没有结果。 Deleting the files does nothing.删除文件没有任何作用。
files in the folder look as fallows: 0aab1329ff345c34fe844d530b69ce5d.json
文件夹中的文件看起来像休耕: 0aab1329ff345c34fe844d530b69ce5d.json
If you only see created files, then you should just add node_modules
to your .gitignore
file.如果您只看到创建的文件,那么您应该将node_modules
添加到您的.gitignore
文件中。 If you see modified files, then you have already committed these to source control.如果您看到修改过的文件,那么您已经将这些文件提交给源代码控制。 You should remove them with git rm
and still add node_modules
to .gitignore
.您应该使用git rm
删除它们,并将node_modules
添加到.gitignore
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.