Skip to content

fix: fall back gracefully when build symlink creation fails#3339

Open
PickBas wants to merge 1 commit into
nodejs:mainfrom
JaneaSystems:issue-3317
Open

fix: fall back gracefully when build symlink creation fails#3339
PickBas wants to merge 1 commit into
nodejs:mainfrom
JaneaSystems:issue-3317

Conversation

@PickBas

@PickBas PickBas commented Jul 3, 2026

Copy link
Copy Markdown
Checklist
  • npm install && npm run lint && npm test passes
  • tests are included
  • commit message follows commit guidelines
Description of change

On filesystems without symlink support (e.g. FAT), node-gyp build aborts with EPERM: ... symlink when creating build/node_gyp_bins/python3. This wraps the symlink creation in a try/catch: on a filesystem-limitation error it warns and continues without the symlink; any other error still propagates.
PATH is only modified after the symlink succeeds, so a failed attempt leaves no half-state behind.

Fixes: #3317

Fixes: nodejs#3317
Signed-off-by: Kirill Saied <sayed.kirill@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build fails on filesystems that don't support symlinks

1 participant