[英]With Git how ignore node_modules on commit
I'd like not commit the folder "node_modules" 我不想提交文件夹“ node_modules”
I tried several solutions found around the web : 我尝试了几种在网上找到的解决方案:
When I do npm install
this folder and all the packages are added to the file to commit and I get a warning from Visual Studio code because there are 5000 elements to commit. 当我执行
npm install
此文件夹,并将所有软件包添加到文件中以进行提交,并且由于存在5000个要提交的元素,我从Visual Studio代码中收到警告。
Any idea ? 任何想法 ?
创建一个.gitignore文件并添加node_modules/
如果node_modules/
添加到您的存储库,则您需要删除或.gitignote不起作用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.