Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Froot75567yRule of thumb. Don't commit anything that isn't yours or can easily be recreated with a script. As always, exceptions apply but as a general rule this has helped me
-
@Greggergalactic they have to learn that you don't commit a script-generated folder than can be reproduced again with the same script. It's better than having generations making the same mistakes
-
@caramelCase he knows that, the thing is, why call them a retard for doing something they do not know?
-
-xlf1267y(As a beginner I ask)
what do you commit instead? I mean, somehow somewhere in the repo there should be the information which modules to install into node_modules when using the program / script... -
I definitely wouldn't call them a retard.
I would, however, be very impressed by their patience - that shit would take ages to upload! -
kenpeter9057yI need to commit node modules simply the remote server cannot compile some package. It works but download the whole things.
-
Imagine after a month when .git folder would be 50x bigger than the actual code 😂
-
@Greggergalactic
Retarded is a strong word but if you’re committing node_modules, you haven’t understood node.js basics and should not be at the stage of committing especially in 2017 -
@affanshahid this is what I'm implying tbh, you're seriously not ready to have a FOSS project with Node if you do that
-
@Greggergalactic
Looking into node for more than 5 mins will let you know that you’re not suppose to commit node_modules. So yes don’t commit unless youve spent at least 5 mins on it. -
sebh06025147yI don't think this issue is as black and white as @caramelCase suggests. See https://stackoverflow.com/a/...
for details.
Related Rants
one big fucking note to starting Node.js programmers
never
EVER
commit node_modules
seriously you're a fucking retard if you do commit that shit
rant
wtf
node
node_modules