【发布时间】:2021-11-03 12:32:24
【问题描述】:
我一直在尝试开始一个新的 React Native 项目,但是这几天一直面临这个问题,尝试在很多论坛上搜索它,但找不到任何适合我的解决方案。
我尝试过的命令:
npx react-native init MyApp
npx react-native init MyApp --template react-native-template-typescript
npx --ignore-existing react-native init MyApp --template react-native-template-typescript
有人提到使用以下方法删除 react-native-CLI:
npm uninstall -g react-native-cli和yarn global remove react-native-cli
仍然没有运气。如果有人能帮忙就太好了。
顺便说一句,我的 Node 版本是 14.1.0
【问题讨论】:
-
你解决了吗?我也面临同样的问题!
-
我必须卸载 yarn 才能让它工作,
npm uninstall -g yarn
标签: javascript reactjs react-native npx