三角洲行动 · 新闻公告

环境检查

PHP 版本 8.5.7 (OK) Node.js sh: 1: node: not found npm sh: 1: npm: not found Playwright sh: 1: npx: not found scrape_news.js 存在 DFNewsScraper.php 存在 shell_exec 可用 proc_open 可用 Chromium 未找到(npx playwright install chromium)
缺失依赖,请在服务器上执行:
# 安装 Node.js 20(如未安装)
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y nodejs

# 安装 Playwright + Chromium(在网站目录下执行)
cd /opt/1panel/www/sites/dh.upx8.com/index
npm install playwright
npx playwright install chromium

# 安装系统依赖(Chromium 在 Linux 上需要)
npx playwright install-deps chromium