美文网首页
小程序使用云函数时真机调试出错

小程序使用云函数时真机调试出错

作者: hao_developer | 来源:发表于2022-07-27 10:33 被阅读0次

有可能是在建立云函数时没有选“确定”

image.png
需要在本地的云函数目录下cmd执行以下命令来安装
必须安装\color{red}{node}\ \color{red}{npm}\

第一步 右击操作

image.png

第二步 在地址栏输入 \color{red}{cmd}\

image.png

第三步 输入 \color{red}{npm install --save wx-server-sdk@latest}\

npm install --save wx-server-sdk@latest
image.png
安装完毕后该目录下会多一个 \color{red}{package-lock.json}\文件

第四步 右击操作

image.png
\color{red}{还有,别忘了上传部署}\

相关文章

网友评论

      本文标题:小程序使用云函数时真机调试出错

      本文链接:https://www.haomeiwen.com/subject/tcfzirtx.html