EROS (一) 环境搭建

EROS

环境

Node.js >= 9.x
npm 4+

1
2
3
4
5
6
7
# maple @ iMac in ~/workspace/eros [17:03:22]
$ node --version
v10.3.0

# maple @ iMac in ~/workspace/eros [17:03:29]
$ npm --version
6.1.0

安装

1
$ npm install -g eros-cli

安装出现问题:

1
2
3
4
5
6
7
$ npm install -g eros-cli
npm WARN deprecated gulp-util@3.0.7: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm ERR! Unexpected end of JSON input while parsing near '...anced-match":"^0.2.0"'

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/maple/.npm/_logs/2018-09-05T09_49_30_162Z-debug.log

解决

清除下缓存

1
2
npm cache clean --force
7281 npm install -g eros-cli

安装 cnpm

1
npm install -g cnpm --registry=https://registry.npm.taobao.org

安装 weex-toolkit

1
cnpm i -g weex-toolkit

需求预估时间提前阅读总结:

需求一: 有道广告优化

目前我看到的是在moment中有 youdao 类型的 cell 返回将这个cell出来,在代理方法中有对有道广告的配置,那么这个需求我们要在哪里进行修改???

-------------本文结束谢谢欣赏-------------
Alice wechat