![]() ![]() I do like yarn with React, that's about it. Almost all my node services & basic web servers use npm with no plans to move to yarn. ![]() It's not a matter of "when they switch over to yarn". ![]() It would be confusing why your yarn is installing with no errors, yet the app doesn't work when using yarn yet it does when using npm. Worse if you're not authed to your private org in yarn, (even if you still are in npm), and a package of the same name exists in the public registry, it'll just install the wrong one with no prompt. When other people start using Yarn instead of npm, the yarn.lock file will ensure that they get precisely the same dependencies as you haveįirst off, no it won't - only if you're only ever using the public npm registry. That is, you should not always commit yarn.lock to the repo, and to answer OP's question, yes you might want to add it to. if the project uses yarn, commit yarn.lock to the repo and gitignore package-lock.json.if the project uses npm, commit package-lock.json to the repo and gitignore yarn.lock.I disagree with the most upvoted comment here: □ 423 psaung, Daniel15, akoskm, harmanTheCarMan, alexdevero, cnolimit, BrianSipple, mkg0, ferflores, okajax, and 413 more reacted with thumbs up emoji □ 16 jucrouzet, Alex-CodeLab, peterjuras, octasimo, caub, TPS, kuangwk, awto, dukuo, Tecktron, and 6 more reacted with thumbs down emoji □ 5 padi-dev-dungnv, dezren39, pingsutw, cothvbdnnn, and ItzMoksh reacted with laugh emoji □ 23 alireza-saberi, abumalick, lukaskollmer, Heliosare, lucduong, danielfttorres, monkey2000, venkatvb, dfa1234, dukuo, and 13 more reacted with hooray emoji □ 21 ddqd, Mechazawa, TPS, chrisvfabio, kkak10, soumasandesu, oren-l, bfwg, superduper, up9cloud, and 11 more reacted with confused emoji ❤️ 26 vdegenne, yussan, dukuo, s-light, mxmzb, exapsy, roshanmirajkar, sarangnx, savkevip, Terkwood, and 16 more reacted with heart emoji □ 10 Terkwood, brunodhr, thomasrosen, mrjhonyvidal, RealDyllon, koterthecoder, IIB3nceII, mofodox, ItzMoksh, and kajchi-dyn reacted with rocket emoji □ 8 rmalav15, RainBoard01, thomasrosen, yuta-hayashi, felipeschossler, vilmacio, Hieutt1704, and ItzMoksh reacted with eyes emoji ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |