![](/img/trans.png)
[英]Problem with babel-loader and version, also babel-loader folder not present in node_modules (npm)
[英]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.