Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pleskac-figma
Copy link

@pleskac-figma pleskac-figma commented Jun 30, 2025

Description

Fix install.js for Windows users.

This is a nice-to-have since likely pnpm install didn't work on Windows in the first place.

EDIT: It actually seems this was partially upstreamed in nodegit@c12c5a4

Test Plan

Vibes right now.... would love to know how to test this out

Comment on lines +29 to +35
const gypPath = path.join(__dirname, "..", "node_modules", "node-gyp", "bin", "node-gyp.js");
var spawnedNodePreGyp = spawn(nodePreGyp, args, {
env: Object.assign({}, process.env, {
npm_config_node_gyp: path.join(__dirname, "..", "node_modules",
"node-gyp", "bin", "node-gyp.js")
})
env: {
...process.env,
npm_config_node_gyp: gypPath
},
shell: process.platform === "win32"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nodegit@c12c5a4

Perhaps we could also just pull in all 70 commits from nodegit/nodegit?

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.

1 participant