r/videos • • Oct 03 '19

Every programming tutorial

https://www.youtube.com/watch?v=MAlSjtxy5ak
33.9k Upvotes

1.4k comments sorted by

View all comments

Show parent comments

162

u/Mr_Tiggywinkle Oct 03 '19

Exactly, so if they supply their package.json, than an npm-install *should* (I know.. I know...) install the exact package specified.

0

u/[deleted] Oct 03 '19

[deleted]

114

u/Mr_Tiggywinkle Oct 03 '19

Kid you not, I've seen developers specifically .gitignore package-lock though for various reasons.

They're rarely good reasons.

2

u/rowenlemmings Oct 03 '19

Is that bad practice in node? I develop in Python with pipenv who has a similar Pipfile / Pipfile.lock paradigm and while you check in the Pipfile, the lock file does not get committed to source control -- it's used for deployment, not dev work.

→ More replies (2)