停止 VS Code 跟踪对 node_modules 的更改
Stop VS Code from traking changes to node_modules
我正在开发 git b运行ch,我正在使用 VS Code 跟踪我对 b运行ch 所做的任何更改。
但是,当我 运行 npm install
时,VS Code 开始跟踪 node_modules,其中有 850 多个更改。
我已将其添加到 .gitignore
文件,但目前没有任何变化。
确保您的 .gitignore 文件与 node_modules 文件夹位于同一父目录中。
project_directory
- .gitignore
- node_modules
- other files
您还可以结帐:
我正在开发 git b运行ch,我正在使用 VS Code 跟踪我对 b运行ch 所做的任何更改。
但是,当我 运行 npm install
时,VS Code 开始跟踪 node_modules,其中有 850 多个更改。
我已将其添加到 .gitignore
文件,但目前没有任何变化。
确保您的 .gitignore 文件与 node_modules 文件夹位于同一父目录中。
project_directory
- .gitignore
- node_modules
- other files
您还可以结帐: