当前位置: 首页 > news >正文

安装moltbot(未成功)

repo:moltbot/moltbot: Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

源码安装:

git clone https://github.com/moltbot/moltbot.git cd moltbot pnpm install pnpm ui:build # auto-installs UI deps on first run pnpm build pnpm moltbot onboard --install-daemon # Dev loop (auto-reload on TS changes) pnpm gateway:watch

install输出

pnpm install Scope: all 31 workspace projects Lockfile is up to date, resolution step is skipped Packages: +4 ++++ Progress: resolved 4, reused 0, downloaded 0, added 0, done ╭ Warning ───────────────────────────────────────────────────────────────────────────────────╮ │ │ │ Ignored build scripts: core-js, node-llama-cpp. │ │ Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts. │ │ │ ╰────────────────────────────────────────────────────────────────────────────────────────────╯ . postinstall$ node scripts/postinstall.js └─ Done in 212ms Done in 6.9s using pnpm v10.23.0 skywalk@ubjail1:~/github/moltbot$ pnpm ui:build # auto-installs UI deps on first run > moltbot@2026.1.27-beta.1 ui:build /home/skywalk/github/moltbot > node scripts/ui.js build > moltbot-control-ui@ build /home/skywalk/github/moltbot/ui > vite build vite v7.3.1 building client environment for production... ✓ 119 modules transformed. ../dist/control-ui/index.html 0.52 kB │ gzip: 0.31 kB ../dist/control-ui/assets/index-BAFzd9IE.css 74.85 kB │ gzip: 13.14 kB ../dist/control-ui/assets/index-CxUwHlqZ.js 355.58 kB │ gzip: 94.74 kB │ map: 1,001.50 kB ✓ built in 6.08s

ui build

pnpm ui:build # auto-installs UI deps on first run > moltbot@2026.1.27-beta.1 ui:build /home/skywalk/github/moltbot > node scripts/ui.js build > moltbot-control-ui@ build /home/skywalk/github/moltbot/ui > vite build vite v7.3.1 building client environment for production... ✓ 119 modules transformed. ../dist/control-ui/index.html 0.52 kB │ gzip: 0.31 kB ../dist/control-ui/assets/index-BAFzd9IE.css 74.85 kB │ gzip: 13.14 kB ../dist/control-ui/assets/index-CxUwHlqZ.js 355.58 kB │ gzip: 94.74 kB │ map: 1,001.50 kB ✓ built in 6.08s ✓ 119 modules transformed. ../dist/control-ui/index.html 0.52 kB │ gzip: 0.31 kB ../dist/control-ui/assets/index-BAFzd9IE.css 74.85 kB │ gzip: 13.14 kB ../dist/control-ui/assets/index-CxUwHlqZ.js 355.58 kB │ gzip: 94.74 kB │ map: 1,001.50 kB ✓ built in 5.98s

build

pnpm build

就报错了,而且问题没有解决。

先搁置。

调试

直接npm安装,但是安装完没有moltbot命令

npm install -g moltbot@latest # or: pnpm add -g moltbot@latest moltbot onboard --install-daemon

不知道啥原因,只好源码安装

build报错:A2UI bundling failed. Re-run with: pnpm canvas:a2ui:bundle

moltbuild 报错:pnpm build > moltbot-control-ui@ build /home/skywalk/github/moltbot/ui > moltbot@2026.1.27-beta.1 build /home/skywalk/github/moltbot > pnpm canvas:a2ui:bundle && tsc -p tsconfig.json && node --import tsx scripts/canvas-a2ui-copy.ts && node --import tsx scripts/copy-hook-metadata.ts && node --import tsx scripts/write-build-info.ts > moltbot@2026.1.27-beta.1 canvas:a2ui:bundle /home/skywalk/github/moltbot > bash scripts/bundle-a2ui.sh ERROR Build failed with 1 error: [UNRESOLVED_ENTRY] Error: Cannot resolve entry module apps/shared/MoltbotKit/Tools/CanvasA2UI/bootstrap.js. at aggregateBindingErrorsIntoJsError (node_modules/.pnpm/rolldown@1.0.0-rc.1/node_modules/rolldown/dist/shared/bindingify-input-options-Cb-01HR1.mjs:621:18) at unwrapBindingResult (node_modules/.pnpm/rolldown@1.0.0-rc.1/node_modules/rolldown/dist/shared/bindingify-input-options-Cb-01HR1.mjs:591:128) at #build (node_modules/.pnpm/rolldown@1.0.0-rc.1/node_modules/rolldown/dist/shared/rolldown-build-KB1YaNe-.mjs:2360:34) at async bundleInner (node_modules/.pnpm/rolldown@1.0.0-rc.1/node_modules/rolldown/dist/cli.mjs:1397:49) at async bundleWithConfig (node_modules/.pnpm/rolldown@1.0.0-rc.1/node_modules/rolldown/dist/cli.mjs:1311:7) at async main (node_modules/.pnpm/rolldown@1.0.0-rc.1/node_modules/rolldown/dist/cli.mjs:1569:3) A2UI bundling failed. Re-run with: pnpm canvas:a2ui:bundle If this persists, verify pnpm deps and try again. ELIFECYCLE Command failed with exit code 1. ELIFECYCLE Command failed with exit code 1.

清除缓存并重新安装

pnpm store prune rm -rf node_modules .pnpm-store pnpm install

不行

pnpm安装报错ERR_PNPM_NO_GLOBAL_BIN_DIR Unable to find the global bin directory

用的这条命令:

pnpm add -g moltbot@latest

pnpm add -g moltbot@latest
ERR_PNPM_NO_GLOBAL_BIN_DIR Unable to find the global bin directory

Run "pnpm setup" to create it automatically, or set the global-bin-dir setting, or the PNPM_HOME env variable. The global bin directory should be in the PATH.

按照提示,执行

pnpm setup

这个报错问题就解决了。

http://www.jsqmd.com/news/318925/

相关文章:

  • ARM汇编器与GNU汇编器:详细介绍与核心区别
  • python共享充电桩微信小程序_qe
  • clonos web界面使用cbsd创建一个bhyve ubuntu server虚拟机(未成功)
  • 今天做的事
  • HTML5 与前端开发要点 - 教程
  • “基于合作博弈的风-光-火联合调度及基于核仁法的利润分配”
  • 迅速入门elasticsearch
  • @constant 和 @readonly 的区别
  • Spring Boot 框架
  • CSS Fonts (字体)
  • Nginx:如何配置基于ip的虚拟主机(总结二)
  • A.每日一题——2976. 转换字符串的最小成本 I
  • Pandas实战技巧,大数据新手入门必学
  • 高通SEE架构深度解析(3): 核心组件从功能模块到安全体系
  • IPD课程系列-产品平台和CCB
  • ollama 调用vlm模型 显存可以省到只用5g左右
  • 高通SEE架构深度解析(2): Sensor HAL层代码实战与ADSP通信
  • 把数字翻译成英文,其实是在考你“结构化思维”
  • python护工预约评价系统管理小程序
  • C++中的职责链模式实战
  • Python多线程与多进程:如何选择?(GIL全局解释器锁详解)
  • 智能标注平台开发:AI应用架构师的必备技能
  • 趣味项目与综合实战
  • 高通SEE架构深度解析(1): 架构原理与核心组件
  • python快递校园帮互助微信小程序设计与实现
  • C++网络编程(Boost.Asio)
  • 摸鱼软件系列:隐藏软件为了方便上班时摸鱼打开某些软件时怕被发现又不想关闭
  • python快餐店微信扫码点餐订餐小程序
  • 构建SpringBoot项目Docker镜像并发布到k8s集群中进行运行
  • 2026年政务服务智能化演进:从被动咨询到“端侧”业务闭环