Skip to content

fix!: stop resolving node path via whichnode #9039

Open
owlstronaut wants to merge 1 commit intolatestfrom
owlstronaut/no-node-modify
Open

fix!: stop resolving node path via whichnode #9039
owlstronaut wants to merge 1 commit intolatestfrom
owlstronaut/no-node-modify

Conversation

@owlstronaut
Copy link
Copy Markdown
Contributor

@owlstronaut owlstronaut commented Feb 27, 2026

BREAKING CHANGE: npm will no longer attempt to resolve the path to node via whichnode. process.execPath is already set by Node to the resolved real path of the node binary, so the lookup was redundant. Scripts that expected npm to override process.execPath with a PATH-resolved (potentially symlinked) node path may be affected.

closes npm/statusboard#1070

@owlstronaut owlstronaut force-pushed the owlstronaut/no-node-modify branch 2 times, most recently from a598aa1 to c2436fc Compare April 16, 2026 16:31
@owlstronaut owlstronaut marked this pull request as ready for review April 16, 2026 16:33
@owlstronaut owlstronaut requested a review from a team as a code owner April 16, 2026 16:33
BREAKING CHANGE: npm will no longer attempt to resolve the path to node via whichnode. process.execPath is already set by Node to the resolved real path of the node binary, so the lookup was redundant. Scripts that expected npm to override process.execPath with a PATH-resolved (potentially symlinked) node path may be affected.
@owlstronaut owlstronaut force-pushed the owlstronaut/no-node-modify branch from c2436fc to f2c8173 Compare April 16, 2026 17:22
@owlstronaut owlstronaut changed the title fix!: stop setting NODE env var and resolving node path via whichnode fix!: stop resolving node path via whichnode Apr 16, 2026
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.

stop reading process.env.NODE in config for nodeBin

3 participants