初始化微信小程序

安装miniprogram-cli

bash 复制代码
F:\business-system\weixin-app-order>npm install -g @wechat-miniprogram/miniprogram-cli
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me

added 180 packages in 38s

20 packages are looking for funding
  run `npm fund` for details

验证安装

bash 复制代码
F:\business-system\weixin-app-order>miniprogram --help
Usage: cli [options] [command]

Options:
  -V, --version                output the version number
  -h, --help                   output usage information

Commands:
  init [options] [dirPath]     create a project with template project
  upgrade [options] [dirPath]  upgrade the miniprogram custom component framwork
  cache [options]              show the path of template projects cache

F:\business-system\weixin-app-order>miniprogram -V
0.0.7
F:\business-system\weixin-app-order>miniprogram init --help
Usage: init [options] [dirPath]

create a project with template project

Options:
  -t, --type <type>  template project type, only accept "custom-component", "miniprogram", "plugin", "game"
  -f, --force        all files will be overrided whether it already exists or not
  -p, --proxy <url>  http/https request proxy
  -n, --newest       use newest template to initialize project
  -h, --help         output usage information

初始化微信小程序

bash 复制代码
miniprogram init --type miniprogram . --newest
相关推荐
IT_陈寒12 分钟前
用Vue时这个响应式陷阱坑了我一整天
前端·人工智能·后端
孙启超21 分钟前
【AI开发之Rust】第 20 课:壳侧 API 封装 —— 把 Rust 能力接进真实 UI
开发语言·后端·rust
BingoGo24 分钟前
用 Jev 与 Laravel AI SDK 检测垃圾邮件和自动回复
后端·laravel
JaguarJack27 分钟前
用 Jev 与 Laravel AI SDK 检测垃圾邮件和自动回复
后端·ai·php·laravel·服务端
mldong31 分钟前
同一套充血模型,八种语言八种长相
后端·架构
噢,我明白了8 小时前
java中唯一键和幂等键的应用
java·后端
GreenTea9 小时前
我把 Agent 的 while 循环拆掉了:一种你可能没想到的 Agent 架构
前端·后端·架构
考虑考虑9 小时前
synchronized字符串常量
java·后端·java ee
颜进强10 小时前
16 · NestJS LifecycleEvents 生命周期事件:五个钩子、三条边界,和 rag-server 的优雅停机
前端·后端·ai编程
GetcharZp10 小时前
定位不再一个个吐坐标:英伟达 LocateAnything 上手全攻略
后端