~ ➤ bash -c "$(curl -fsSL https://gitee.com/iflow-ai/iflow-cli/raw/main/install.sh)"
==========================================
iFlow CLI Installation Script
Optimized for Development Machines
==========================================
ℹ System: Linux 6.17.9-arch1-1
ℹ Shell: zsh
✅ uv is already installed
ℹ uv version: uv 0.5.9
✅ Node.js v25.2.1 is already installed (>= 20)
ℹ Using existing Node.js installation
ℹ Installing iFlow CLI...
npm error code EACCES
npm error syscall mkdir
npm error path /usr/lib/node_modules/@iflow-ai
npm error errno -13
npm error Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/@iflow-ai'
npm error at async mkdir (node:internal/fs/promises:861:10)
npm error at async /usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:572:20
npm error at async Promise.allSettled (index 0)
npm error at async #reifyPackages (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:309:11)
npm error at async Arborist.reify (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:121:5)
npm error at async Install.exec (/usr/lib/node_modules/npm/lib/commands/install.js:150:5)
npm error at async Npm.exec (/usr/lib/node_modules/npm/lib/npm.js:208:9)
npm error at async module.exports (/usr/lib/node_modules/npm/lib/cli/entry.js:67:5) {
npm error errno: -13,
npm error code: 'EACCES',
npm error syscall: 'mkdir',
npm error path: '/usr/lib/node_modules/@iflow-ai'
npm error }
npm error
npm error The operation was rejected by your operating system.
npm error It is likely you do not have the permissions to access this file as the current user
npm error
npm error If you believe this might be a permissions issue, please double-check the
npm error permissions of the file and its containing directories, or try running
npm error the command again as root/Administrator.
npm notice
npm notice New minor version of npm available! 11.6.4 -> 11.7.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.7.0
npm notice To update run: npm install -g npm@11.7.0
npm notice
npm error A complete log of this run can be found in: /home/$username/.npm/_logs/2025-12-20T02_21_01_062Z-debug-0.log
❌ Failed to install iFlow CLI!
为什么一定要全局安装呢?安装在 ~/ 下的某个目录中不可以吗?