react-native - 安装 react native - 命令行界面(环境:节点:没有这样的文件或目录)
问题描述
在终端(Mac OS)上执行此命令以设置反应本机环境 :~ npm install -g react-native-cli getting error env: node: No such file or directory
解决方案
您的系统上似乎没有安装节点。按照此链接上的说明进行操作
适用于 MacOS
安装自制软件
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安装节点
brew install node
安装守望者
brew install watchman
最后安装 React Native CLI
npm install -g react-native-cli
推荐阅读
- php - 如果功能不正确,Codeigniter 登录和注销会话
- vue.js - Vue-Konva 是否支持 GLSL?
- javascript - 如何存储来自 JSON 的过滤数据并在表格中显示(EmberJS)
- sql-server - 使用变量的过滤器查询未使用索引
- tomcat - 与 mime 类型相关的 Solr 全索引错误
- c# - IIS 网站在计算过程中响应缓慢
- javascript - 使用 JSON 文件 Highcharts 的钻取图
- react-native - 无法在没有互联网连接的情况下在 LAN 上运行 expo 项目
- java - 龙目岛没有创建默认构造函数导致杰克逊数据绑定失败
- php - 未捕获的类型错误:$(...).modal