当前位置:网站首页>【wepy2.0】的安装
【wepy2.0】的安装
2022-07-22 23:02:00 【香饽饽慧】
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文
提示:以下是本篇文章正文内容
一、安装wepy?
1、全局安装脚手架 ----只需要安装一次
通过命令 npm install @wepy/cli -g 全局安装 版本2.1.0
2,验证是否安装 wepy 成功
在命令行里 wepy -v 如果输出版本号 证明安装成功
二、新建项目
1. 在命令行输入 wepy init standard 项目名称
2.配置文件
projectname: 项目名称 可以不填写
Appid: 小程序的appid
project des.. : 项目描述 可以不填写
Author: 作者 可以不填写
EsLint: n 严格模式 一般为no
状态管理工具: none 可以选择vuex 最好为none
3.安装依赖包
1)进入项目 cd 项目名称
2)安装依赖 npm i 或者 cnpm i
4.启动项目
npm run dev 或者 wepy build --watch
5.预览项目
微信开发工具 ---- 导入 ----- node_modules上一层级的文件夹(创建的项目)
边栏推荐
猜你喜欢

Xmodem、Ymodem和Zmodem协议是最常用的三种通信协议

我们来浅谈代码语言的魅力

"Weilai Cup" 2022 Niuke summer multi school training camp 1

Jmeter分布式压测

小红书携手HMS Core,畅玩高清视界,种草美好生活

promise(一)

Three cache strategies: cache side strategy, read/write through strategy, and write back strategy

三种缓存策略:Cache Aside 策略、Read/Write Through 策略、Write Back 策略

Redis 事务学习有感

JMeter distributed pressure measurement
随机推荐
Golang中iota的正确用法
YAML语法介绍和各种数据类型
Initializing, cleaning up and const decorating member functions of constructors
Lc: sword finger offer 39. numbers that appear more than half of the time in the array
Flynk uses liststate to implement keyedstate
I can't be angry with "voluntary salary reduction". I'm naked. I'm three times in four days. How can it end like this?
C language function (1)
MySQL uses SQL statements to query all data with a field value divided by 10 equal to 0
promise(二)
promise(一)
微信小程序中使用全局数据实现数据共享
小红书携手HMS Core,畅玩高清视界,种草美好生活
Arduino中断实现上升沿检测,并执行其他函数
物联网安装调试员丨让“智慧”生活早日来临
Redis transaction and locking mechanism
Google Earth engine app - a complete map legend app (land use classification of western United States)
JS regular delete the span tag and the content in the tag
JMeter distributed pressure measurement
哪种类型的模切机可用于纸?
C语言函数(1)