How do I create a React Native project using Yarn?

后端 未结 4 2059
不思量自难忘°
不思量自难忘° 2020-12-13 04:10

I am running the following commands in the DOS console on a Windows 7 (64-bit) machine.

npm install -g yarn
yarn add global react-native
yarn add global reac         


        
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-13 04:26

    Please You visit Bug

    yarn global add react-native-cli
    

    with

    react-native --version
    

    and I get "$basedir/../../Users/juvasquezg/AppData/Local/Yarn/config/global/node_modules/.bin/react-native.cmd" "$@"

    the system cannot find the path specified

    Go to C:\Program Files\nodejs and I saw:

    • react-native
    • react-native.cmd
    • react-native.cmd.cmd

    The fix is to delete react-native.cmd and rename react-native.cmd.cmd to react-native.cmd

    The Solution #1324 (comment)

提交回复
热议问题