From 9e7d5f0d7a91d601a4e5db7e5bf651fd18011369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=8D=95=E9=A3=8E=E7=9A=84=E9=80=8D=E9=81=A5=E4=BE=AF?= Date: Mon, 27 Oct 2025 23:48:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AEnodejs=20PATH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Start.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Start.py b/Start.py index 3923fd2..9786dc7 100644 --- a/Start.py +++ b/Start.py @@ -10,6 +10,9 @@ import sys import shutil from pathlib import Path +node_bin = '/opt/eric/nodejs/node-v24.1.0-linux-x64/bin' +os.environ['PATH'] = f"{node_bin}:{os.environ.get('PATH', '')}" + # ==================== 在导入任何模块之前先迁移数据库 ==================== def _migrate_database_files_early(): """在启动前检查并迁移数据库文件到data目录(使用print,因为logger还未初始化)"""