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

Fix postinstall script crash when install location has spaces in its path#1148

Merged
johnhaley81 merged 1 commit intonodegit:masternodegit/nodegit:masterfrom
jon-hall:patch-1jon-hall/nodegit:patch-1Copy head branch name to clipboard
Jan 27, 2017
Merged

Fix postinstall script crash when install location has spaces in its path#1148
johnhaley81 merged 1 commit intonodegit:masternodegit/nodegit:masterfrom
jon-hall:patch-1jon-hall/nodegit:patch-1Copy head branch name to clipboard

Conversation

@jon-hall
Copy link
Contributor

@jon-hall jon-hall commented Oct 14, 2016

After installing nodegit in a directory which had spaces along its path, the postinstall script crashed as a result (Error: Cannot find module 'C:\<path up to the first space>') - wrapping this node call's target in quotes fixes the issue.

}

return exec("node " + path.join(rootPath, "dist/nodegit.js"))
return exec("node \"" + path.join(rootPath, "dist/nodegit.js\""))
Copy link
Collaborator

Choose a reason for hiding this comment

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

I feel like return exec("node \"" + path.join(rootPath, "dist/nodegit.js\"")) should instead be return exec("node \"" + path.join(rootPath, "dist/nodegit.js") + "\"") but this has been open for long enough. I'll fix that in a later PR.

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.

2 participants

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