执行memorix hooks install报错
$ memorix hooks install node:internal/bootstrap/switches/does_own_process_state:142 cachedCwd = rawMethods.cwd(); ^
Error: EPERM: process.cwd failed with error operation not permitted, uv_cwd
at process.wrappedCwd [as cwd] (node:internal/bootstrap/switches/does_own_process_state:142:28)
at parseStack (file:///opt/homebrew/lib/node_modules/memorix/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs:5:23)
at FancyReporter.formatStack (file:///opt/homebrew/lib/node_modules/memorix/node_modules/consola/dist/index.mjs:562:14)
at FancyReporter.formatError (file:///opt/homebrew/lib/node_modules/memorix/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs:24:36)
at file:///opt/homebrew/lib/node_modules/memorix/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs:33:21
at Array.map (
Node.js v25.6.1
v0.9.3 已修复此问题。根因是 process.cwd() 在 macOS 上当前目录不可访问时崩溃,consola 日志库在格式化堆栈时也调用了 process.cwd() 导致连错误信息都无法显示。修复:所有 CLI 命令现在用 try-catch 包裹 process.cwd(),失败时 fallback 到 home 目录。请更新: npm install -g memorix@latest