wepy安装后提示Cannot read property 'addDeps'
最近准备做一个微信小程序,以前一直用的小程序原始api做,但是这次准备用一个框架来做练习,当然在做之前需要比较一下现在小程序框架的优缺点。 经过认真挑选,选定wepy,Taro,uni-app,mpvue, 由于对react不熟悉,故放弃Taro, 至于其他三个, 他们的DSL都是VUR, 可以考虑。
至于哪个好,我也不知道,准备一个一个试一试, 从wepy开始吧!一个一个试,是有点麻烦,反正现在时间充裕,项目暂未开始,就当学习了!!
wepy安装步骤
$ npm install @wepy/cli -g # 全局安装 WePY CLI 工具
$ wepy init standard myproj # 使用 standard 模板初始化项目
$ cd myproj # 进入到项目目录
$ npm install # 安装项目依赖包
$ npm run dev # 监听并且编译项目
wepy build --watch运行后提示ERR Cannot read property 'addDeps' of undefined。
上面这是1.7.x的安装后运行进行以上提示,而我们安装的是2.x, git上已经更新安装方式,第一步 npm install @wepy/cli -g 更改为npm install @wepy/cli@next -g
1. npm install @wepy/cli@next -g
2. wepy init standard myproject
3. cd myproject
4. npm install
5. wepy build --watch
按照此步骤安装后运行结果
[16:17:21] info build app start...
[16:17:22] info app building App
[16:17:22] info component building components
[16:17:23] info component building components
[16:17:23] info component building components
[16:17:23] info vendor building vendor
[16:17:23] info assets building assets
[16:17:23] info build finished
[16:17:23] info watching...
最新文章
- jsp原理
- Jquery父页面和子页面的相互操作
- linux琐碎知识点
- HDU 2841 Visible Trees 数论+容斥原理
- poj 2253 Frogger dijkstra算法实现
- express 4.x 文件上传
- Mac上面用来录屏的软件(录制gif图片或者mov)
- 2.如何搭建MQTT环境
- 解读python中SocketServer源码
- javascript中的Date对象和Math对象
- BEAMER中 Package Listings Warning: Text dropped after begin of listing on input line xx
- mongodb .explain('executionStats') 查询性能分析(转)
- 运维监控-Zabbix Server 使用微信 WeChat 告警
- Hello Shader之Hello Trangle
- Opengl绘制我们的小屋(二)第一人称漫游
- uva-10050-模拟水题
- Notes of Daily Scrum Meeting(11.11)
- 01b-1: 性能测度
- java 检测代理IP是否准确
- Python字符串操作大全(非常全!!!)