问题描述
npm notice
✅ OpenClaw 安装完成
🔧 初始化 OpenClaw 配置...
📦 克隆 ClawPanel...
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, lstat '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps/plugin-shell/dist-js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, lstat '/home/ubuntu/.local/share/clawpanel/node_modules/vite/dist/node'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/.local/share/clawpanel/node_modules/nanoid/async/index.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, lstat '/home/ubuntu/.local/share/clawpanel/node_modules/rollup/dist/shared'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/.local/share/clawpanel/node_modules/esbuild/lib/main.d.ts'
npm warn cleanup Failed to remove some directories [
npm warn cleanup [
npm warn cleanup '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps/cli',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps/cli'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps/cli'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/home/ubuntu/.local/share/clawpanel/node_modules/postcss',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/home/ubuntu/.local/share/clawpanel/node_modules/postcss/lib'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/home/ubuntu/.local/share/clawpanel/node_modules/postcss/lib'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/home/ubuntu/.local/share/clawpanel/node_modules/nanoid',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/home/ubuntu/.local/share/clawpanel/node_modules/nanoid/async'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/home/ubuntu/.local/share/clawpanel/node_modules/nanoid/async'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/home/ubuntu/.local/share/clawpanel/node_modules/source-map-js',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/home/ubuntu/.local/share/clawpanel/node_modules/source-map-js/lib'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/home/ubuntu/.local/share/clawpanel/node_modules/source-map-js/lib'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/home/ubuntu/.local/share/clawpanel/node_modules',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/home/ubuntu/.local/share/clawpanel/node_modules/picomatch'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/home/ubuntu/.local/share/clawpanel/node_modules/picomatch'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/home/ubuntu/.local/share/clawpanel/node_modules/picomatch',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/home/ubuntu/.local/share/clawpanel/node_modules/picomatch'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/home/ubuntu/.local/share/clawpanel/node_modules/picomatch'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps/plugin-shell',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps/plugin-shell'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps/plugin-shell'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps/plugin-shell'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps/plugin-shell'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/home/ubuntu/.local/share/clawpanel/node_modules/rollup',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/home/ubuntu/.local/share/clawpanel/node_modules/rollup/dist'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/home/ubuntu/.local/share/clawpanel/node_modules/rollup/dist'
npm warn cleanup }
npm warn cleanup ]
npm warn cleanup ]
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, lstat '/home/ubuntu/.local/share/clawpanel/node_modules/vite/dist/node'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, lstat '/home/ubuntu/.local/share/clawpanel/node_modules/vite/dist'
npm error code EACCES
npm error syscall open
npm error path /home/ubuntu/.npm/_cacache/tmp/92d3d7ee
npm error errno -13
npm error
npm error Your cache folder contains root-owned files, due to a bug in
npm error previous versions of npm which has since been addressed.
npm error
npm error To permanently fix this problem, please run:
npm error sudo chown -R 1000:1000 "/home/ubuntu/.npm"
npm error A complete log of this run can be found in: /home/ubuntu/.npm/_logs/2026-04-20T02_11_43_651Z-debug-0.log
复现步骤
使用 sudo chown -R 1000:1000 "/home/ubuntu/.npm"修复。
ClawPanel Web 版 一键部署脚本
在 Linux 上通过浏览器管理 OpenClaw
👤 以普通用户身份运行,安装到 /home/ubuntu/.local/share/clawpanel
🖥️ 系统: ubuntu x86_64
✅ Git 已安装
✅ Node.js v22.22.2 已安装
✅ OpenClaw 已安装: OpenClaw 2026.4.15 (041266a) (/usr/bin/openclaw)
🔧 初始化 OpenClaw 配置...
📦 ClawPanel 已存在,更新中...
Already up to date.
up to date in 502ms
7 packages are looking for funding
run npm fund for details
📦 构建生产版本...
node:internal/modules/esm/resolve:205
const resolvedOption = FSLegacyMainResolve(pkgPath, packageConfig.main, baseStringified);
^
Error: Cannot find package '/home/ubuntu/.local/share/clawpanel/node_modules/picomatch/index.js' imported from /home/ubuntu/.local/share/clawpanel/node_modules/vite/dist/node/cli.js
at legacyMainResolve (node:internal/modules/esm/resolve:205:26)
at packageResolve (node:internal/modules/esm/resolve:778:12)
at moduleResolve (node:internal/modules/esm/resolve:855:18)
at defaultResolve (node:internal/modules/esm/resolve:985:11)
at #cachedDefaultResolve (node:internal/modules/esm/loader:731:20)
at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:310:38)
at ModuleJob._link (node:internal/modules/esm/module_job:182:49) {
code: 'ERR_MODULE_NOT_FOUND'
}
期望行为
修复BUG
操作系统
macOS (Apple Silicon)
系统版本
Ubuntu 24.04
ClawPanel 版本
0.13
截图或日志
No response
补充信息
No response
问题描述
npm notice
✅ OpenClaw 安装完成
🔧 初始化 OpenClaw 配置...
📦 克隆 ClawPanel...
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, lstat '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps/plugin-shell/dist-js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, lstat '/home/ubuntu/.local/share/clawpanel/node_modules/vite/dist/node'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/.local/share/clawpanel/node_modules/nanoid/async/index.js'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, lstat '/home/ubuntu/.local/share/clawpanel/node_modules/rollup/dist/shared'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/.local/share/clawpanel/node_modules/esbuild/lib/main.d.ts'
npm warn cleanup Failed to remove some directories [
npm warn cleanup [
npm warn cleanup '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps/cli',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps/cli'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps/cli'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/home/ubuntu/.local/share/clawpanel/node_modules/postcss',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/home/ubuntu/.local/share/clawpanel/node_modules/postcss/lib'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/home/ubuntu/.local/share/clawpanel/node_modules/postcss/lib'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/home/ubuntu/.local/share/clawpanel/node_modules/nanoid',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/home/ubuntu/.local/share/clawpanel/node_modules/nanoid/async'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/home/ubuntu/.local/share/clawpanel/node_modules/nanoid/async'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/home/ubuntu/.local/share/clawpanel/node_modules/source-map-js',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/home/ubuntu/.local/share/clawpanel/node_modules/source-map-js/lib'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/home/ubuntu/.local/share/clawpanel/node_modules/source-map-js/lib'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/home/ubuntu/.local/share/clawpanel/node_modules',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/home/ubuntu/.local/share/clawpanel/node_modules/picomatch'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/home/ubuntu/.local/share/clawpanel/node_modules/picomatch'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/home/ubuntu/.local/share/clawpanel/node_modules/picomatch',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/home/ubuntu/.local/share/clawpanel/node_modules/picomatch'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/home/ubuntu/.local/share/clawpanel/node_modules/picomatch'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps/plugin-shell',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps/plugin-shell'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps/plugin-shell'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps/plugin-shell'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/home/ubuntu/.local/share/clawpanel/node_modules/@tauri-apps/plugin-shell'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '/home/ubuntu/.local/share/clawpanel/node_modules/rollup',
npm warn cleanup [Error: ENOTEMPTY: directory not empty, rmdir '/home/ubuntu/.local/share/clawpanel/node_modules/rollup/dist'] {
npm warn cleanup errno: -39,
npm warn cleanup code: 'ENOTEMPTY',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: '/home/ubuntu/.local/share/clawpanel/node_modules/rollup/dist'
npm warn cleanup }
npm warn cleanup ]
npm warn cleanup ]
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, lstat '/home/ubuntu/.local/share/clawpanel/node_modules/vite/dist/node'
npm warn tar TAR_ENTRY_ERROR ENOENT: no such file or directory, lstat '/home/ubuntu/.local/share/clawpanel/node_modules/vite/dist'
npm error code EACCES
npm error syscall open
npm error path /home/ubuntu/.npm/_cacache/tmp/92d3d7ee
npm error errno -13
npm error
npm error Your cache folder contains root-owned files, due to a bug in
npm error previous versions of npm which has since been addressed.
npm error
npm error To permanently fix this problem, please run:
npm error sudo chown -R 1000:1000 "/home/ubuntu/.npm"
npm error A complete log of this run can be found in: /home/ubuntu/.npm/_logs/2026-04-20T02_11_43_651Z-debug-0.log
复现步骤
使用 sudo chown -R 1000:1000 "/home/ubuntu/.npm"修复。
ubuntu@192-168-0-124:~$ curl -fsSL https://raw.githubusercontent.com/qingchencloud/clawpanel/main/scripts/linux-deploy.sh | bash
ClawPanel Web 版 一键部署脚本
在 Linux 上通过浏览器管理 OpenClaw
👤 以普通用户身份运行,安装到 /home/ubuntu/.local/share/clawpanel
🖥️ 系统: ubuntu x86_64
✅ Git 已安装
✅ Node.js v22.22.2 已安装
✅ OpenClaw 已安装: OpenClaw 2026.4.15 (041266a) (/usr/bin/openclaw)
🔧 初始化 OpenClaw 配置...
📦 ClawPanel 已存在,更新中...
Already up to date.
up to date in 502ms
7 packages are looking for funding
run
npm fundfor details📦 构建生产版本...
node:internal/modules/esm/resolve:205
const resolvedOption = FSLegacyMainResolve(pkgPath, packageConfig.main, baseStringified);
^
Error: Cannot find package '/home/ubuntu/.local/share/clawpanel/node_modules/picomatch/index.js' imported from /home/ubuntu/.local/share/clawpanel/node_modules/vite/dist/node/cli.js
at legacyMainResolve (node:internal/modules/esm/resolve:205:26)
at packageResolve (node:internal/modules/esm/resolve:778:12)
at moduleResolve (node:internal/modules/esm/resolve:855:18)
at defaultResolve (node:internal/modules/esm/resolve:985:11)
at #cachedDefaultResolve (node:internal/modules/esm/loader:731:20)
at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:310:38)
at ModuleJob._link (node:internal/modules/esm/module_job:182:49) {
code: 'ERR_MODULE_NOT_FOUND'
}
期望行为
修复BUG
操作系统
macOS (Apple Silicon)
系统版本
Ubuntu 24.04
ClawPanel 版本
0.13
截图或日志
No response
补充信息
No response