打包程序无法启动 [英] Packager won't start

查看:60
本文介绍了打包程序无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我在某个时候升级了节点,现在当我尝试使用 npm start 运行打包程序时,它抱怨:

I guess I upgraded node at some point and now when I try to run the packager with npm start it's complaining with:

$ npm start
react-native start

Looks like you installed react-native globally, maybe you meant react-native-cli?
To fix the issue, run:
npm uninstall -g react-native
npm install -g react-native-cli

Node 5.1.0、npm 3.3.12 和 react-native 0.15.0

Node 5.1.0, npm 3.3.12 and react-native 0.15.0

推荐答案

看起来现在为 IOS 应用程序启动打包程序的首选方法是点击 xcode 本身中的运行按钮或使用以下命令:

It looks like the preferred way to start the packager now for an IOS app is by hitting the run button in xcode itself or using the following command:

react-native start

这篇关于打包程序无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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