一:安装node.js
https://nodejs.org/en/download/下载安装
这样就可以使用npm命令了,如果npm命令安装很慢的话,可以使用淘宝镜像的cnpm。使用方法参考https://npm.taobao.org/

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

这样就可以使用cnpm代替npm了
二:安装wept
项目源码:github(https://github.com/chemzqm/wept)
使用命令:npm i wept -g或cnpm i wept -g

三:进入小程序目录
cd 小程序目录
输入命令:wept


四:chrome浏览器输入浏览结果
http://localhost:3000


网友评论