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