WIP: Use yarn instead of npm #98

Closed
fsmanuel wants to merge 1 commits from chore/yarn into master
fsmanuel commented 2019-04-12 22:32:55 +00:00 (Migrated from github.com)

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?

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?
bumi (Migrated from github.com) approved these changes 2019-04-13 07:13:28 +00:00
bumi (Migrated from github.com) left a comment

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?

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?
fsmanuel commented 2019-04-13 10:21:45 +00:00 (Migrated from github.com)

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...

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...
bumi commented 2019-04-13 10:39:49 +00:00 (Migrated from github.com)

ok, I see.. but npm works as it does currently.. so it is not a breaking change, is it?

ok, I see.. but `npm` works as it does currently.. so it is not a breaking change, is it?
raucao commented 2019-04-13 11:29:13 +00:00 (Migrated from github.com)

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.

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.
fsmanuel commented 2019-04-13 13:53:27 +00:00 (Migrated from github.com)

Alright! I'll rebase and readd the package-lock files so we can use both.

Alright! I'll rebase and readd the package-lock files so we can use both.
fsmanuel commented 2019-04-15 15:37:39 +00:00 (Migrated from github.com)

Superseded by #102

Superseded by #102

Pull request closed

Sign in to join this conversation.
No description provided.