Title: postinstall does not work on Windows · Issue #976 · nodegit/nodegit · GitHub
Open Graph Title: postinstall does not work on Windows · Issue #976 · nodegit/nodegit
X Title: postinstall does not work on Windows · Issue #976 · nodegit/nodegit
Description: The postinstall script is currently executing (as of #972) bash postinstall.sh. For obvious reasons, this won't work when attempting to install nodegit through cmd.exe. This commit in particular seems pretty ironic 😦. Here's an installat...
Open Graph Description: The postinstall script is currently executing (as of #972) bash postinstall.sh. For obvious reasons, this won't work when attempting to install nodegit through cmd.exe. This commit in particular se...
X Description: The postinstall script is currently executing (as of #972) bash postinstall.sh. For obvious reasons, this won't work when attempting to install nodegit through cmd.exe. This commit in particula...
Opengraph URL: https://github.com/nodegit/nodegit/issues/976
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"postinstall does not work on Windows","articleBody":"The postinstall script is currently executing (as of #972) `bash postinstall.sh`. For obvious reasons, this won't work when attempting to install nodegit through `cmd.exe`. [This commit](https://github.com/nodegit/nodegit/pull/972/commits/601cacb67a19a49d5266b3122684e7d62ae6d94b) in particular seems pretty ironic :frowning:.\n\nHere's an installation log (while trying to build Atom, but that _shouldn't_ matter):\n\n```\nInstalling modules failed\n\u003e atom@1.8.0-dev preinstall\nC:\\Users\\username\\Documents\\GitHub\\atom\n\u003e node -e 'process.exit(0)'\n\n\n\u003e nodegit@0.12.0 install C:\\Users\\username\\Documents\\GitHub\\atom\\node_modules\\nodegit\n\u003e node lifecycleScripts/install\n\n[nodegit] Fetching binary from S3.\n[nodegit] Completed installation successfully.\n\n\u003e nodegit@0.12.0 postinstall C:\\Users\\username\\Documents\\GitHub\\atom\\node_modules\\nodegit\n\u003e bash postinstall.sh\n\n\nnpm WARN engine nodegit@0.12.0: wanted: {\"node\":\"\u003e= 0.12\"} (current: {\"node\":\"0.10.40\",\"npm\":\"2.13.3\"})\n'bash' is not recognized as an internal or external command,\noperable program or batch file.\nnpm ERR! Windows_NT 6.2.9200\nnpm ERR! argv \"C:\\\\Users\\\\username\\\\Documents\\\\GitHub\\\\atom\\\\apm\\\\node_modules\\\\atom-package-manager\\\\bin\\\\node.exe\" \"C:\\\\Users\\\\username\\\\Documents\\\\GitHub\\\\atom\\\\apm\\\\node_modules\\\\atom-package-manager\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"--globalconfig\" \"C:\\\\Users\\\\username\\\\.atom\\\\.apm\\\\.apmrc\" \"--userconfig\" \"C:\\\\Users\\\\username\\\\.atom\\\\.apmrc\" \"install\" \"--target=0.36.8\" \"--arch=ia32\" \"--msvs_version=2015\"\nnpm ERR! node v0.10.40\nnpm ERR! npm v2.13.3\nnpm ERR! code ELIFECYCLE\n\nnpm ERR! nodegit@0.12.0 postinstall: `bash postinstall.sh`\nnpm ERR! Exit status 1\nnpm ERR!\nnpm ERR! Failed at the nodegit@0.12.0 postinstall script 'bash postinstall.sh'.\nnpm ERR! This is most likely a problem with the nodegit package,\nnpm ERR! not with npm itself.\nnpm ERR! Tell the author that this fails on your system:\nnpm ERR! bash postinstall.sh\nnpm ERR! You can get their info via:\nnpm ERR! npm owner ls nodegit\nnpm ERR! There is likely additional logging output above.\n```\n","author":{"url":"https://github.com/winstliu","@type":"Person","name":"winstliu"},"datePublished":"2016-03-29T20:16:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/976/nodegit/issues/976"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:012e023b-cacb-085d-a3b3-443c3f9dc967 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1EA:140E58:8DDC823:B72455B:6975F8B6 |
| html-safe-nonce | 65fc79ceaf07b27869d42941eb29e86c7efe23d18003ec592585337f12ef991d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUVBOjE0MEU1ODo4RERDODIzOkI3MjQ1NUI6Njk3NUY4QjYiLCJ2aXNpdG9yX2lkIjoiODAyOTUwNDcxMjQwODk1NTA2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cec60f8e2bdaace504e8c837b919adf281d907ca68e5357d3e7c43b9f9c6e991 |
| hovercard-subject-tag | issue:144374978 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodegit/nodegit/976/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f195e58e243abc211f87931665c40fcd49847e37366e82cfd03d90a320d36838/nodegit/nodegit/issues/976 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f195e58e243abc211f87931665c40fcd49847e37366e82cfd03d90a320d36838/nodegit/nodegit/issues/976 |
| og:image:alt | The postinstall script is currently executing (as of #972) bash postinstall.sh. For obvious reasons, this won't work when attempting to install nodegit through cmd.exe. This commit in particular se... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | winstliu |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6814b4cc7afd45cd6e64525d0cff0e76dd802f315a5b0e55a7abda1d1d070d0 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1383170 |
| octolytics-dimension-repository_nwo | nodegit/nodegit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1383170 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4ea235bfed58ef16c8a5642b3ac64b74f10c9f52 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width