Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

chore: fix install script for Windows#13

Closed
pleskac-figma wants to merge 2 commits intofigma:figmafigma/nodegit:figmafrom
pleskac-figma:pleskac/installfixpleskac-figma/nodegit:pleskac/installfixCopy head branch name to clipboard
Closed

chore: fix install script for Windows#13
pleskac-figma wants to merge 2 commits intofigma:figmafigma/nodegit:figmafrom
pleskac-figma:pleskac/installfixpleskac-figma/nodegit:pleskac/installfixCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.