Vue-cli: Yarn as default?

Created on 16 May 2017  路  9Comments  路  Source: vuejs/vue-cli

First of all, thank you for this tool. It has helped me getting into building client-side apps with vue much faster than I could have wished. I even gave a talk about that on our local ruby on rails usergroup.

I hope that it is ok to ask a question here rather than reporting a bug.

I've seen some comments in this repo like #245 for YARN support in the vue-cli.

My question would be if it is reasonable to push YARN to be the default in vue-cli, ie. generated code, installation, examples etc?

For me as a backend developer, the whole JS tooling is kinda confusing, especially coming from the very opinionated RoR.
As far as i understand, using YARN is beeing adopted as a best practice for client side dependency management, and I would love to see that reflected in this project.

I'd also be willing to help getting this done wherever I can.

Most helpful comment

edit ~/.vuerc

All 9 comments

It's up to the user. People who use yarn will use it anyway but npm is the default/standard package manager and what most people is used to 馃檪

great to see that yarn is now the default!

how can i change it back to npm?. npm has proven to work on very slow network. while yarn keeps failing multiple times.

edit ~/.vuerc

yes i finally found it under user home directory , thanks.

Change yarn to npm
vi ~/.vuerc

edit ~/.vuerc

where pls specify

edit ~/.vuerc

where pls specify

https://github.com/vuejs/vue-cli/issues/1300#issuecomment-389379048
This could help.

edit ~/.vuerc

The best help i found on this problem!

Was this page helpful?
0 / 5 - 0 ratings