Comments (7)
如果你发布的是库,不应该把 node_modules 放入 git
而如果你发布的是软件,可以考虑把 node_modules 放入 git
from nodeclub.
ok,确实需要这样做。
from nodeclub.
我个人还是建议不论是库还是软件都将node_modules加入.gitignore列表,因为通过npm install -d可以很方便安装相关模块。同时最大程度利用了npm的灵活性,减少耦合。另外,将node_modules放入git必然会令git库变庞大,浪费空间。
from nodeclub.
如果那个库我们改过,我觉得应该进git。
要不然别人npm install 之后还得自己按照readme去改,赶脚不方便。
from nodeclub.
@freizl 自己改过的也不应该进git,既然是自己改过的module,那这个module应该有他自己的git,你当然也可以修改他的package name,比如叫做 myusername-somelib 依然可以用npm来管理。
from nodeclub.
我是指比如nodeclub这个项目开发的时候需要修改一些库,那这些被修改的库应该加入source control, 否则别人用的时候需要他自己再手动去修改,感觉不是很好。
from nodeclub.
won't do this.
from nodeclub.
Related Issues (20)
- node.js作为中间件,一次复杂的请求中,中间空闲时间太多,怎么优化
- ceotos 安装报错 HOT 1
- CNode 搜索有问题 HOT 1
- [cnodejs](https://cnodejs.org/)无法访问? HOT 11
- 网站访问不了了 HOT 1
- 网站访问不了,下一步的打算是什么,是关停还是正在寻找办法? HOT 5
- 大家好,新版NodeJS中文社区,我已经搭建完毕:http://nodejscn.com/
- [2020-12-16] 社区恢复进度更新 HOT 1
- [安全]: 建议把web端 Access Token 默认隐藏.
- 求详细部署文档
- 发送邮件功能会发送失败,用户名需要加引号
- Trying to get in touch regarding a security issue
- Add support for Casdoor authentication
- Busboy is not a constructor HOT 1
- some changes for seo
- 通过GitHub始终无法登录 HOT 6
- 图片挂了, 424
- 无法注册
- 新用户注册,无法接收邮件激活
- cnodejs 缺少维护,访问缓慢,现在已无法打开
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodeclub.