gpt4 book ai didi

javascript - 未找到 native react + mac os

转载 作者:搜寻专家 更新时间:2023-11-01 00:37:08 25 4
gpt4 key购买 nike

我正在尝试在我的 macOS 中运行基本的 react-native 应用程序。我通过 brew 安装了 Node 。

My node version: v6.12.0
npm version :5.5.1

然后我使用 npm 安装了 reatc-native-cli。现在,当我尝试使用 react-native init 创建项目时,它显示 react-native command not found

我尝试了所有解决方案,但没有希望。因为我是这个 react-native 指南的新手,所以我解决了这个问题。提前致谢。

我尝试了所有帖子,包括

react-native: command not found

最佳答案

在使用“react-native init”之前,您应该先安装React-Native CLI

npm install -g react-native-cli

更多React-Native入门手册,请关注Document

https://facebook.github.io/react-native/docs/getting-started.html

And select tab Building Projects with Native Code for manual create project without Expo

关于javascript - 未找到 native react + mac os,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47550181/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com