找不到react-native + macos [英] react-native not found + mac os

查看:110
本文介绍了找不到react-native + macos的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在macOS中运行基本的本机应用程序.我通过brew安装了节点.

I am trying to run basic react-native app in my macOS. I installed node through brew .

My node version: v6.12.0
npm version :5.5.1

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

Then i installed reatc-native-cli using npm. Now when i try to create a project using react-native init it says react-native command not found.

我尝试了所有解决方案,但没有希望.因为我是这个本机指南的新手,所以我解决了这个问题.预先感谢.

I tried all solutions but no hope. as i am new bee to this react-native guide me solve this. Thanks in advance.

我尝试了所有帖子,包括

I tried all post including

​​ react-native:找不到命令

推荐答案

在使用"react-native init" 之前,您应该先安装 React-Native CLI . >

You should install React-Native CLI first before using "react-native init".

npm install -g react-native-cli

有关手动 React-Native 入门的更多信息,请遵循此

For more information of getting started React-Native in manual, please follow this Document

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

然后选择选项卡使用本机代码构建项目,以手动创建没有 Expo

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

这篇关于找不到react-native + macos的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆