MiMo-Code
MiMo-Code copied to clipboard
安装不了 什么原因呀
Description
不指定版本安装不了,啥原因
[root@localhost ~]# npm install -g @mimo-ai/cli --verbose
npm verbose cli /usr/local/nodejs/bin/node /usr/local/nodejs/bin/npm
npm info using [email protected]
npm info using [email protected]
npm verbose title npm install @mimo-ai/cli
npm verbose argv "install" "--global" "@mimo-ai/cli" "--loglevel" "verbose"
npm verbose logfile logs-max:10 dir:/root/.npm/_logs/2026-06-27T11_46_11_629Z-
npm verbose logfile /root/.npm/_logs/2026-06-27T11_46_11_629Z-debug-0.log
npm http cache https://registry.npmmirror.com/@mimo-ai%2fcli 11ms (cache hit)
npm http cache https://registry.npmmirror.com/@mimo-ai%2fmimocode-linux-arm64 9ms (cache hit)
npm http cache https://registry.npmmirror.com/@mimo-ai%2fmimocode-windows-x64 10ms (cache hit)
npm http cache https://registry.npmmirror.com/@mimo-ai%2fmimocode-linux-x64 11ms (cache hit)
npm http cache https://registry.npmmirror.com/@mimo-ai%2fmimocode-windows-arm64 14ms (cache hit)
npm http cache https://registry.npmmirror.com/@mimo-ai%2fmimocode-darwin-x64-baseline 15ms (cache hit)
npm http cache https://registry.npmmirror.com/@mimo-ai%2fmimocode-darwin-x64 18ms (cache hit)
npm http cache https://registry.npmmirror.com/@mimo-ai%2fmimocode-windows-x64-baseline 18ms (cache hit)
npm http cache https://registry.npmmirror.com/@mimo-ai%2fmimocode-linux-x64-musl 11ms (cache hit)
npm http cache https://registry.npmmirror.com/@mimo-ai%2fmimocode-linux-x64-baseline 9ms (cache hit)
npm http cache https://registry.npmmirror.com/@mimo-ai%2fmimocode-linux-arm64-musl 9ms (cache hit)
npm http cache https://registry.npmmirror.com/@mimo-ai%2fmimocode-darwin-arm64 79ms (cache hit)
npm http cache https://registry.npmmirror.com/@mimo-ai%2fmimocode-linux-x64-baseline-musl 74ms (cache hit)
npm http cache @mimo-ai/cli@https://registry.npmmirror.com/@mimo-ai/cli/-/cli-0.1.3.tgz 0ms (cache hit)
npm info run @mimo-ai/[email protected] postinstall node_modules/@mimo-ai/cli bun ./postinstall.mjs || node ./postinstall.mjs
npm info run @mimo-ai/[email protected] postinstall { code: 1, signal: null }
npm verbose stack Error: command failed
npm verbose stack at promiseSpawn (/usr/local/nodejs/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:22:22)
npm verbose stack at spawnWithShell (/usr/local/nodejs/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:124:10)
npm verbose stack at promiseSpawn (/usr/local/nodejs/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:12:12)
npm verbose stack at runScriptPkg (/usr/local/nodejs/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script-pkg.js:79:13)
npm verbose stack at runScript (/usr/local/nodejs/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script.js:9:12)
npm verbose stack at /usr/local/nodejs/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js:341:17
npm verbose stack at run (/usr/local/nodejs/lib/node_modules/npm/node_modules/promise-call-limit/dist/commonjs/index.js:67:22)
npm verbose stack at /usr/local/nodejs/lib/node_modules/npm/node_modules/promise-call-limit/dist/commonjs/index.js:84:9
npm verbose stack at new Promise (<anonymous>)
npm verbose stack at callLimit (/usr/local/nodejs/lib/node_modules/npm/node_modules/promise-call-limit/dist/commonjs/index.js:35:69)
npm verbose pkgid @mimo-ai/[email protected]
npm error code 1
npm error path /usr/local/nodejs/lib/node_modules/@mimo-ai/cli
npm error command failed
npm error command sh -c bun ./postinstall.mjs || node ./postinstall.mjs
npm error sh: bun: command not found
npm error Failed to setup mimocode binary: Could not find package @mimo-ai/mimocode-linux-x64: Cannot find module '@mimo-ai/mimocode-linux-x64/package.json'
npm error Require stack:
npm error - /usr/local/nodejs/lib/node_modules/@mimo-ai/cli/postinstall.mjs
npm verbose cwd /root
npm verbose os Linux 4.18.0-553.137.1.el8_10.x86_64
npm verbose node v24.18.0
npm verbose npm v11.16.0
npm verbose exit 1
npm verbose code 1
npm error A complete log of this run can be found in: /root/.npm/_logs/2026-06-27T11_46_11_629Z-debug-0.log
[root@localhost ~]#
Plugins
No response
MiMoCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
rocky8
Terminal
No response
npm install -g @mimo-ai/cli 执行这个,你多了命令
@Jack-kai0915 "postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs" 貌似是bun执行失败直接报错了,就不会执行右边,所以要么用脚本安装,要么安装bun了