- Install yarn with npm globally
npm i -g yarn
- Run
yarn
in project's root dir
It will create a yarn.lock file, be patient.
yarn
-
Change any npm related cmd in
package.json
to yarn's equivalent -
Do not forget to remove package-lock.json
rm package-lock.json
Now you can use yarn :>