Use native node -p to get exec path (#7420)

This commit is contained in:
Frank Lemanschik
2025-07-15 12:08:37 -08:00
committed by GitHub
parent cdac5bff64
commit 8b3d9b9e0a
+1 -1
View File
@@ -16,7 +16,7 @@ main() {
# Package managers may shim their own "node" wrapper into the PATH, so run
# node and ask it for its true path.
local node_path
node_path="$(node <<< 'console.info(process.execPath)')"
node_path="$(node -p process.execPath)"
mkdir -p "$RELEASE_PATH/bin"
mkdir -p "$RELEASE_PATH/lib"