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

 

各种问题汇总:

 

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

 

 

7、_reactNative.Platform.select is a function

"react-native-router-flux": "3.30.0",  (没有^)

npm list | grep router-flux

 

 

8、unable to resolve module app/reducers/reducer_utils from /Users/moxiaoyan/kuban/kuban-amdmin/KubanAdmin/app/

cd app

nam install

 

9、require react@15.1.0

npm install --save react@15.0.0-rc.1 react-dom@15.0.0-rc.1

 

 

10、Unable to resolve modules lodash

npm install lodash --save

npm install lodash@3.10.1

 

 

11、babel@5.8.38 should be installed with -g

npm install babel@5.8.38 -g

 

 

12、Unable to resolve module react from  ***

npm install react --save

npm install --save react@^0.14.5

 

 

13、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

 

14、Rails is not currently installed on this system. 

sudo gem install rails  //安装

 

15、终端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

 

 

16、Xcode: 报错RCTRootView not found

项目目录 sudo npm install

 

 

 

 

 

 

 

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

莫小言mo

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值