129

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

Comments
  • 5
    Muahahaa yeah that monster folder of DOOM
  • 13
    Rule 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
  • 9
    .gitignore guys, use it or you will be there for hours mmmmmmmmmmmkay?
  • 3
    @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
  • 4
    @caramelCase he knows that, the thing is, why call them a retard for doing something they do not know?
  • 3
    (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...
  • 0
    @Greggergalactic Thank you!
  • 6
    Rule of thumb: Never call anyone "a retard"
  • 0
    I definitely wouldn't call them a retard.
    I would, however, be very impressed by their patience - that shit would take ages to upload!
  • 0
    I need to commit node modules simply the remote server cannot compile some package. It works but download the whole things.
  • 0
    Imagine after a month when .git folder would be 50x bigger than the actual code 😂
  • 0
    Well ok😟
  • 2
    @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
  • 1
    @affanshahid this is what I'm implying tbh, you're seriously not ready to have a FOSS project with Node if you do that
  • 2
    @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.
  • 1
    I don't think this issue is as black and white as @caramelCase suggests. See https://stackoverflow.com/a/...
    for details.
Add Comment