From fa3fda4c746b67d5d6b2b8bad96c5c53beb389e4 Mon Sep 17 00:00:00 2001 From: ZacharyZcR Date: Fri, 10 Oct 2025 00:16:34 +0800 Subject: [PATCH] chore: fix npm optional dependencies bug in CI Remove package-lock.json and node_modules before install to properly handle optional dependencies for rollup, lightningcss, and tailwindcss native bindings on Linux x64 platform as recommended by npm. --- .github/workflows/pr-check.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index d8ed568b..5d0df61f 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -16,15 +16,11 @@ jobs: uses: actions/setup-node@v4 with: node-version: "20" - cache: "npm" - name: Install dependencies - run: npm ci - - - name: Fix optional dependencies run: | - npm install rollup --force - npm install lightningcss --force + rm -rf node_modules package-lock.json + npm install - name: Run ESLint run: npx eslint .