FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix postinstall script crash when install location has spaces in its path by jon-hall · Pull Request #1148 · nodegit/nodegit · GitHub

Repository navigation

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

Merged
johnhaley81 merged 1 commit into
nodegit:masterfrom
jon-hall:patch-1
Jan 27, 2017
Merged

johnhaley81 merged 1 commit into
nodegit:masterfrom
jon-hall:patch-1

Conversation

jon-hall commented Oct 14, 2016 •
edited
Loading

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL