感谢解答!
已经通过电脑终端命令行卸载
按照官网的命令行安装,再次报错,没想到这点东西能折腾1-2个小时搞不定
# 一键安装脚本,会安装全部所需依赖
bash -c “$(curl -fsSL https://gitee.com/iflow-ai/iflow-cli/raw/main/install.sh)”
# 已有Node.js 22+
npm i -g @iflow-ai/iflow-cli@latest
终端命令行结果
sun@Suns-Macmini ~ % bash -c “$(curl -fsSL https://gitee.com/iflow-ai/iflow-cli/raw/main/install.sh)”
==========================================
iFlow CLI Installation Script
Optimized for Development Machines
==========================================
System: Darwin 25.0.0
Shell: zsh
Installing uv…
curl: (56) Recv failure: Operation timed out
uv installed successfully
Node.js v22.17.0 is already installed (>= 20)
Using existing Node.js installation
Cleaning npmrc conflicts…
Existing iFlow CLI installation detected
Current version: 0.2.31
Uninstalling existing iFlow CLI…
Could not uninstall via npm, trying to remove manually…
iFlow CLI still exists after uninstall attempt. Attempting to locate and remove it…
Found iflow executable at: /Users/sun/Library/pnpm/iflow
Successfully removed iflow executable: /Users/sun/Library/pnpm/iflow
Successfully removed existing iFlow CLI
Installing iFlow CLI…
npm error code ENOTEMPTY
npm error syscall rename
npm error path /usr/local/lib/node_modules/@iflow-ai/iflow-cli
npm error dest /usr/local/lib/node_modules/@iflow-ai/.iflow-cli-JFzPIyjv
npm error errno -66
npm error ENOTEMPTY: directory not empty, rename ‘/usr/local/lib/node_modules/@iflow-ai/iflow-cli’ → ‘/usr/local/lib/node_modules/@iflow-ai/.iflow-cli-JFzPIyjv’
npm error A complete log of this run can be found in: /Users/sun/.npm/_logs/2026-02-11T10_55_42_391Z-debug-0.log
Failed to install iFlow CLI!
sun@Suns-Macmini ~ % bash -c “$(curl -fsSL https://gitee.com/iflow-ai/iflow-cli/raw/main/install.sh)”
==========================================
iFlow CLI Installation Script
Optimized for Development Machines
==========================================
System: Darwin 25.0.0
Shell: zsh
Installing uv…
curl: (56) Recv failure: Operation timed out
uv installed successfully
Node.js v22.17.0 is already installed (>= 20)
Using existing Node.js installation
Cleaning npmrc conflicts…
Installing iFlow CLI…
npm error code ENOTEMPTY
npm error syscall rename
npm error path /usr/local/lib/node_modules/@iflow-ai/iflow-cli
npm error dest /usr/local/lib/node_modules/@iflow-ai/.iflow-cli-JFzPIyjv
npm error errno -66
npm error ENOTEMPTY: directory not empty, rename ‘/usr/local/lib/node_modules/@iflow-ai/iflow-cli’ → ‘/usr/local/lib/node_modules/@iflow-ai/.iflow-cli-JFzPIyjv’
npm error A complete log of this run can be found in: /Users/sun/.npm/_logs/2026-02-11T10_58_27_054Z-debug-0.log
Failed to install iFlow CLI!
这样安装也报错
sun@Suns-Macmini FlowithMusic % npm i -g @iflow-ai/iflow-cli@latest
npm error code ENOTEMPTY
npm error syscall rename
npm error path /usr/local/lib/node_modules/@iflow-ai/iflow-cli
npm error dest /usr/local/lib/node_modules/@iflow-ai/.iflow-cli-JFzPIyjv
npm error errno -66
npm error ENOTEMPTY: directory not empty, rename ‘/usr/local/lib/node_modules/@iflow-ai/iflow-cli’ → ‘/usr/local/lib/node_modules/@iflow-ai/.iflow-cli-JFzPIyjv’
npm error A complete log of this run can be found in: /Users/sun/.npm/_logs/2026-02-11T10_56_53_915Z-debug-0.log