Create-react-app: Avoid using Yarn by default

Created on 5 Feb 2018  路  1Comment  路  Source: facebook/create-react-app

Guys, a few days ago, I installed yarn on my Mac just because it's necessary for a project where I'm involved.

My problem is that, now, when I create a new app with CRA, it's going to use yarn instead of npm. And, to be honest, I prefer npm.

Is there a way to force to use npm instead of yarn?
Or should I wait until finish the initial setup, then remove the yarn.lock file, the node_modules folder and then run npm i?

Most helpful comment

You can run CRA with --use-npm flag to force it to use npm.

>All comments

You can run CRA with --use-npm flag to force it to use npm.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JimmyLv picture JimmyLv  路  3Comments

fson picture fson  路  3Comments

stopachka picture stopachka  路  3Comments

adrice727 picture adrice727  路  3Comments

oltsa picture oltsa  路  3Comments