码迷,mamicode.com
首页 > 其他好文 > 详细

在终端terminal运行ReactNative程序经常出现的问题

时间:2016-06-05 00:54:31      阅读:224      评论:0      收藏:0      [点我收藏+]

标签:

各种问题汇总:

 

1、Unable to resolve modules lodash  (这里举例lodash,这个lodash也可以是别的。意思就是缺少当前模块,所以需要安装)

npm install lodash --save

 或(制定版本的命令): npm install lodash@3.10.1 

 

 

2、babel@5.8.38 should be installed with -g

npm install babel@5.8.38 -g

 

 

3、Unable to resolve module react from  ... (同1)

npm install react --save

npm install --save react@^0.14.5

 

 

4、Command `run-iOS` unrecognized. Did you mean to run this inside a react-native project?

npm install -g react-native-cli

npm install --save react-native@latest

 

5、Rails is not currently installed on this system. 

sudo gem install rails  //安装

 

6、终端install pod报错:

pod not found after install, “pod setup” returns: Could not find ‘cocoapods‘ (>= 0) among 64 total gem(s) (Gem::LoadError)

sudo gem install cocoapods

在终端terminal运行ReactNative程序经常出现的问题

标签:

原文地址:http://www.cnblogs.com/moxiaoyan33/p/5559878.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!