1

I have created a new app with npx react-native init. The installation is completed and I can run my app with npx, but it's giving me this error during installation:

⠋ Downloading templateerror Cannot parse yarn version: 0.32
⠴ Downloading templateerror Cannot parse yarn version: 0.32
✔ Downloading template
✔ Copying template
✔ Processing template
⠋ Installing dependencieserror Cannot parse yarn version: 0.32
✔ Installing dependencies

Similarly, if I run any yarn command like yarn start, it doesn't recognize it:

00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'start'

Writting yarn --version returns 0.32.

Vinyet
  • 19
  • 1
  • 5

1 Answers1

0

Yarn may be missing. Try installing it via npm:

sudo npm install yarn -g