初始化一個react-native專案
阿新 • • 發佈:2018-12-09
npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global
npm install -g yarn react-native-cli
安裝完 yarn 後同理也要設定映象源:
yarn config set registry https://registry.npm.taobao.org --global yarn config set disturl https://npm.taobao.org/dist --global
react-native init cass
react-native run-android
出現錯誤:
依次執行:
npm uninstall react-native
npm install --save [email protected]
react-native run-android
npm install --save [email protected] [email protected]
npm uninstall --save babel-preset-react-native
npm install --save [email protected]
react-native run-android