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



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

我试过重新安装 babel 但没有结果。 删除文件不执行任何操作。

文件夹中的文件显示为休耕:0aab1329ff345c34fe844d530b69ce5d.json

如果您只看到创建的文件,那么您应该将node_modules添加到.gitignore文件中。如果看到已修改的文件,则表示已将这些文件提交到源代码管理。您应该git rm删除它们,并且仍然node_modules添加到.gitignore

最新更新