fix: Use --force flag to bypass platform checks in npm install · bigdatasciencegroup/ruvector@6179bb6 · GitHub
Skip to content

Commit 6179bb6

Browse files
ruvnetclaude
andcommitted
fix: Use --force flag to bypass platform checks in npm install
- Change --no-optional to --omit=optional (npm 10+ syntax) - Add --force flag to bypass EBADPLATFORM errors for optional deps - Platform-specific packages in lock file were causing install failures even with optional deps omitted 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9fba8c4 commit 6179bb6

5 files changed

Lines changed: 6 additions & 18 deletions

File tree

‎.github/workflows/build-gnn.yml‎

Lines changed: 1 addition & 3 deletions

‎.github/workflows/build-graph-node.yml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ jobs:
7979
8080
- name: Install dependencies
8181
working-directory: npm/packages/graph-node
82-
run: npm install --ignore-scripts --no-optional
83-
env:
84-
npm_config_ignore_scripts: true
82+
run: npm install --ignore-scripts --omit=optional --force
8583

8684
- name: Build native module
8785
working-directory: npm/packages/graph-node

‎.github/workflows/build-native.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ jobs:
8282
8383
- name: Install dependencies
8484
working-directory: npm
85-
run: npm install --ignore-scripts --no-optional
86-
env:
87-
npm_config_ignore_scripts: true
85+
run: npm install --ignore-scripts --omit=optional --force
8886

8987
- name: Build native module
9088
working-directory: npm/packages/core
@@ -258,9 +256,7 @@ jobs:
258256
259257
- name: Install dependencies
260258
working-directory: npm
261-
run: npm install --ignore-scripts --no-optional
262-
env:
263-
npm_config_ignore_scripts: true
259+
run: npm install --ignore-scripts --omit=optional --force
264260

265261
- name: Publish platform packages
266262
working-directory: npm/packages/core

‎.github/workflows/build-router.yml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ jobs:
7979
8080
- name: Install dependencies
8181
working-directory: npm/packages/router
82-
run: npm install --ignore-scripts --no-optional
83-
env:
84-
npm_config_ignore_scripts: true
82+
run: npm install --ignore-scripts --omit=optional --force
8583

8684
- name: Build native module
8785
working-directory: npm/packages/router

‎.github/workflows/build-tiny-dancer.yml‎

Lines changed: 1 addition & 3 deletions

0 commit comments

Comments
 (0)