react-native icon indicating copy to clipboard operation
react-native copied to clipboard

cannot initialize new project

Open Bayramito opened this issue 1 year ago • 3 comments

Description

simply npx react-native init command doens't work.

Ekran Resmi 2022-10-23 13 45 56

I am using a Macbook pro 16 inch 2019 intel, with Monterey 12.6 macOS version.

I installed ruby 3.1.2 which is latest via asdf and setted it as global ruby version.

but still same issue.

UPDATE: just tried now, i can initialize in Webstorm's terminal but still doens't work on normal terminal or Iterm2

Version

0.70.3

Output of npx react-native info

Steps to reproduce

none

Snack, code example, screenshot, or link to a repository

none

Bayramito avatar Oct 23 '22 10:10 Bayramito

I installed ruby 3.1.2 which is latest via asdf and setted it as global ruby version.

As the terminal says, you need to be on Ruby 2.7.5. You should look into setting up Rbenv to control the ruby version

cortinico avatar Oct 24 '22 17:10 cortinico

I installed ruby 3.1.2 which is latest via asdf and setted it as global ruby version.

As the terminal says, you need to be on Ruby 2.7.5. You should look into setting up Rbenv to control the ruby version

As you can see on the console i am using 3.1.2 as local ruby

Bayramito avatar Oct 25 '22 05:10 Bayramito

Had the same issue. Installing ruby 2.7.5, while still using a more recent global ruby version, resolved the error.

elliotsoomro avatar Oct 27 '22 17:10 elliotsoomro

It turns out that the same issue exists. https://github.com/facebook/react-native/issues/35053

abelbeak avatar Oct 28 '22 01:10 abelbeak