#!/usr/bin/env node /** * 输出 Node.js/npm/Python 路径(供 PowerShell / bat 等脚本读取 config.js) * 用法: node configs/get-node-paths.js * 输出 JSON: { arch, nodeDir, npmCmdPath, npmCliPath, pythonDir, pythonVenvPath } */ const path = require('path'); const config = require(path.join(__dirname, 'config.js')); console.log(JSON.stringify({ arch: config.arch, nodeDir: config.nodeDir, npmCmdPath: config.npmCmdPath, npmCliPath: config.npmCliPath, pythonDir: config.pythonDir || config.pythonPath?.path, pythonVenvPath: config.pythonVenvPath }));