Fix: Use Node.js 16 for node-sass compatibility
Some checks failed
continuous-integration/drone/push Build is failing

- Changed from node:20 to node:16 in both test and build steps
- Node.js 16 LTS is compatible with node-sass and node-gyp
- This fixes the 'gyp ERR! Cannot assign to read only property cflags' error
- Node.js 20's node-gyp has breaking changes incompatible with older node-sass
This commit is contained in:
Joris Slagter
2025-12-02 19:59:04 +01:00
parent e126875ba6
commit d927f94c4e

View File

@@ -5,7 +5,7 @@ name: default
steps: steps:
# Step 1: Install dependencies and run linting # Step 1: Install dependencies and run linting
- name: test - name: test
image: node:20 image: node:16
commands: commands:
- npm ci - npm ci
- npm run lint || echo "⚠ Linting skipped (no lint script found)" - npm run lint || echo "⚠ Linting skipped (no lint script found)"
@@ -15,7 +15,7 @@ steps:
# Step 2: Build for production (to verify it compiles) # Step 2: Build for production (to verify it compiles)
- name: build - name: build
image: node:20 image: node:16
commands: commands:
- npm ci - npm ci
- npm run build - npm run build