Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time to move back to NPM? #448

Closed
jrjohnson opened this issue Feb 15, 2019 · 3 comments
Closed

Time to move back to NPM? #448

jrjohnson opened this issue Feb 15, 2019 · 3 comments

Comments

@jrjohnson
Copy link

Yarn is great. Some would even say awesome. But NPM is too. The Ember community made a big move to yarn, much of which (IMHO) was driven by @wycats's working on the project and articles like https://yehudakatz.com/2016/10/11/im-excited-to-work-on-yarn-the-new-js-package-manager-2/ but a lot has happened in 2.5 years and NPM has made tremendous strides. In fact:

I'm really proud to have been a part of yarn, which has helped kick npm back in gear. I've been using npm5 and it's great!

— Yehuda Katz 🥨 (@wycats) June 15, 2017

It's easy to use either one in an app or project, but Yarn tends to be preferred by many projects because it is seen as the Ember Way™️. I think this is an area where Ember can get back on track with the larger ecosystem and move back to NPM. If core projects make this move addons and apps will follow. NPM is still the default for new projects and with time some difficult to read switching code can be removed from ember-cli blueprints and moving between developing addons will no longer require ls to check what lockfile is available. Making this decision in a RFC signals a change in direction to the community and takes one more meaningless decision away when starting a new project.

Does Yarn provide something that NPM does not?

@jrjohnson jrjohnson changed the title Time to move back to NPM Time to move back to NPM? Feb 15, 2019
@runspired
Copy link
Contributor

Fwiw I still have more success with yarn's lockfile than npm's, but both seem to be buggy still so it isn't much of a win :(

I do have a better experience with yarn trying to work on projects offline.

@mehulkar
Copy link
Contributor

I would reeeeeealllly love for Ember guides to at least provide a toggle for yarn or npm instructions. For someone who is perpetually out-of-date and likes copy paste, it's really tough to have to do a mental translation between yarn and npm.

@jrjohnson
Copy link
Author

After some discussion on Discord I've been convinced that NPM is the default for Ember and all the documentation and blueprints so there is nothing to move back from. Most projects I'm involved with use yarn, but that is an individual decision.

One of the most tangible benefits of choosing ember is the consistent developer experience and documentation that applies to every app. It is up to everyone to make the right choice for their environment. In some cases that will be yarn, but if you want your app to align with the docs then NPM should get your full consideration, it is the default and if you don't have a reason to choose yarn then go with NPM.

Officially Ember will always support the package manager shipped with supported versions of node.

As for me, I'll be moving things I work with back to NPM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants