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

Using Yarn Instead of Npm for Ionic #10647

Closed
aswinmohanme opened this issue Mar 4, 2017 · 10 comments
Closed

Using Yarn Instead of Npm for Ionic #10647

aswinmohanme opened this issue Mar 4, 2017 · 10 comments

Comments

@aswinmohanme
Copy link

Ionic version: (check one with "x")
[ ] 1.x
[x ] 2.x

I'm submitting a ... (check one with "x")
[ ] bug report
[x ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Npm is super slow and super awesome at testing the patience of a developer. It would be nice if Ionic switched to Yarn ( the faster alternative package manager).

React has already did that and they are happy about it https://facebook.github.io/react-native/blog/2016/11/08/introducing-button-yarn-and-a-public-roadmap.html

Thanks.

@jgw96
Copy link
Contributor

jgw96 commented Mar 6, 2017

Hello! Thanks for the feature request. I'm going to move this issue over to our internal list of feature requests for evaluation. We are continually prioritizing all requests that we receive with outstanding issues. We are extremely grateful for your feedback, but it may not always be our next priority. I'll copy the issue back to this repository when we have begun implementation. Thanks!

@jgw96
Copy link
Contributor

jgw96 commented Mar 6, 2017

This issue was moved to driftyco/ionic-feature-requests#123

@jgw96 jgw96 closed this as completed Mar 6, 2017
@aswinmohanme
Copy link
Author

Thanks

@vhbsouza
Copy link

vhbsouza commented Apr 7, 2017

@jgw96 this driftyco/ionic-feature-requests#123 url is 404 ... Where can I follow this thread?

@gianpaj
Copy link
Contributor

gianpaj commented Jun 16, 2017

looks like this is done now
ionic-team/ionic-cli@5107a66
ionic-team/ionic-cli@8573ff2

if you run ionic on >= 3.4.0, you'll see an option --yarn to enable that. Though not sure if it helps for an existing project. probably ionic it runs yarn instead of npm only when u start a project.

But since npm 5 has a package-lock.json and it's faster, not sure if yarn is such a big deal.

@rafael-neri
Copy link

rafael-neri commented Sep 2, 2017

How to install ionic using Yarn.

Alternative 1:
ionic config set -g yarn true

Alternative 2: (Only Ubuntu)
https://gist.github.com/rafael-neri/f24e328a123e2585bbabce135a787952

@rungissan
Copy link

ionic config set -g yarn true

@Mobiletainment
Copy link
Contributor

With Ionic 4 and Angular CLI v6+ you can use ng config -g cli.packageManager yarn.

@imhoffd
Copy link
Contributor

imhoffd commented Aug 7, 2018

Along with configuring the Angular CLI as @Mobiletainment said, with Ionic CLI 4 you have to do this:

ionic config set -g npmClient yarn

This isn't really documented, but I'd be happy to accept PRs if something isn't working properly.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 9, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants