Files
workspace/fixed-runtime-confirmation.md
aitest 15c4480db1 Add OpenClaw workspace configuration and tools
- Add agent configuration files (AGENTS.md, USER.md, IDENTITY.md, SOUL.md)
- Add git configuration and skills management scripts
- Add frontend/backend analysis tools and reports
- Add DingTalk media sender utilities and documentation
- Fix OpenClaw runtime environment (Node.js and Python)
- Configure git remotes and push scripts
2026-03-05 13:56:59 +09:00

2.6 KiB
Raw Permalink Blame History

OpenClaw固定环境版本配置报告

执行环境验证 - 已完成

🔧 Node.js配置

版本: Node v24.14.0 ✓ 路径: F:\openclaw-runtime\node-v24.14.0-win-x64\node.exe配置方式: 硬编码在gateway.cmd中 ✓ NVM影响: 不受影响 ✓ PATH影响: 不受影响

🐍 Python配置

版本: Python 3.14.2 ✓ 路径: F:\pyenv\pyenv-win\pyenv-win\versions\3.14.2\python.exe配置方式: OPENCLAW_PYTHON环境变量 ✓ pyenv影响: 不受影响 ✓ PATH影响: 不受影响

📋 验证结果

Node.js验证

# Gateway.cmd中的配置
"F:\openclaw-runtime\node-v24.14.0-win-x64\node.exe" F:\npm-global\node_modules\openclaw\dist\index.js gateway --port 18789

# 当前运行进程
Process ID: 12016
Path: F:\openclaw-runtime\node-v24.14.0-win-x64\node.exe
Version: v24.14.0

Python验证

# 环境变量配置
OPENCLAW_PYTHON = F:\pyenv\pyenv-win\pyenv-win\versions\3.14.2\python.exe

# 测试运行
Python version: 3.14.2

🔒 确认事项

Node.js环境安全

  1. 硬编码路径: gateway.cmd使用完整绝对路径不依赖PATH
  2. 进程锁定: 当前运行使用固定的openclaw-runtime目录
  3. NVM隔离: 系统NVM配置不影响OpenClaw运行时
  4. 环境变量: 设置OPENCLAW_NODE作为备用配置

Python环境安全

  1. 环境变量: OPENCLAW_PYTHON明确指定Python路径
  2. 用户级配置: 设置为用户环境变量,永久生效
  3. pyenv隔离: 系统pyenv切换不影响OpenClaw的Python版本
  4. 技能执行: 所有skills使用相同的Python 3.14.2环境

📝 配置文件位置

OpenClaw配置

  • Gateway脚本: C:\Users\ALC\.openclaw\gateway.cmd
  • 运行时目录: F:\openclaw-runtime\node-v24.14.0-win-x64\
  • 配置文件: C:\Users\ALC\.openclaw\openclaw.json

设置脚本

  • Node设置: C:\Users\ALC\.openclaw\workspace\set-openclaw-node.ps1
  • Python设置: C:\Users\ALC\.openclaw\workspace\set-openclaw-python.ps1
  • Node验证: C:\Users\ALC\.openclaw\workspace\check-openclaw-node.ps1

环境变量

  • OPENCLAW_NODE: F:\openclaw-runtime\node-v24.14.0-win-x64\node.exe
  • OPENCLAW_PYTHON: F:\pyenv\pyenv-win\pyenv-win\versions\3.14.2\python.exe

最终确认

OpenClaw环境配置已完全固定

  • Node版本: v24.14.0 (固定不受NVM影响)
  • Python版本: 3.14.2 (固定不受pyenv影响)
  • Skills执行: 使用固定的Python环境
  • Gateway启动: 使用固定的Node运行时

所有skills的执行环境都将使用这些固定版本不会受到系统级别工具切换的影响。