WIP: Use yarn instead of npm #98
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "chore/yarn"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Using yarn fixed my setup problems.
In the beginning I had a problem with a web3 package but this error is somehow gone, now.
Can someone test if it works for you as well?
I never really looked into yarn and never understood why it exists. it always felt like throwing more code on a problem instead of fixing the problem... but as said I have no idea :D
but it looks good to me and I am happy that it solves an issue for you.
I guess then one can even use both?
It has some historical reasons why yarn exists. npm2 installed all the packages nested aka the same package got installed multiple times. Yarn on the other hand flattend the dependencies and did a much better job at version resolution. It also installed the packages in parallel and was much faster. Since then npm3 also flattend the dependencies but is still very slow. The yarn lock file is much more stable and doesn't change every time. So I prefer yarn over npm for package management...
ok, I see.. but
npm
works as it does currently.. so it is not a breaking change, is it?Except for the difference in lockfiles, npm over time introduced pretty much any and all benefits that yarn ever had over npm afaik. I think our code should definitely support being used with yarn, but I'd propose to keep npm as the default, simply because it is the de-facto standard package manager for JavaScript, and yarn is just an alternative client for npm's registry.
Alright! I'll rebase and readd the package-lock files so we can use both.
Superseded by #102
Pull request closed