微信小程序克隆到运行

小程序开发工具下载:官网登陆后下载开发软件
https://mp.weixin.qq.com/
https://mp.weixin.qq.com/cgi-bin/wx
1.git克隆
2.安装依赖 npm i
如果遇到卡在node lib/install.js 一直不进行
重新运行安装:(https://www.python100.com/html/3716RLP8FZM2.html)

npm install --ignore-scripts

理解npm install --ignore-scripts

3.安装完运行

npm run serve

如果报错:
在这里插入图片描述
可以尝试单独安装wepy-cli,最好安装package.json 中wepy的版本
我这里的版本是
在这里插入图片描述
所以安装:

npm install wepy-cli@^1.6.0 -g

安装完之后就可以继续运行npm run serve了

另外:新建微信小程序流程:微信小程序开发流程

猜你喜欢

转载自blog.csdn.net/Web_Notes/article/details/131311352