Title: Installation fails with Python 3 · Issue #46 · msgpack/msgpack-node · GitHub
Open Graph Title: Installation fails with Python 3 · Issue #46 · msgpack/msgpack-node
X Title: Installation fails with Python 3 · Issue #46 · msgpack/msgpack-node
Description: I run the following: npm install msgpack and get: > msgpack@1.0.2 install {path}\node_modules\msgpack > node-gyp rebuild {path}\node_modules\msgpack>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_...
Open Graph Description: I run the following: npm install msgpack and get: > msgpack@1.0.2 install {path}\node_modules\msgpack > node-gyp rebuild {path}\node_modules\msgpack>if not defined npm_config_node_gyp (node "C:\Pro...
X Description: I run the following: npm install msgpack and get: > msgpack@1.0.2 install {path}\node_modules\msgpack > node-gyp rebuild {path}\node_modules\msgpack>if not defined npm_config_node_gyp (nod...
Opengraph URL: https://github.com/msgpack/msgpack-node/issues/46
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Installation fails with Python 3","articleBody":"I run the following:\r\n`npm install msgpack`\r\n\r\nand get:\r\n\r\n```\r\n\u003e msgpack@1.0.2 install {path}\\node_modules\\msgpack\r\n\u003e node-gyp rebuild\r\n\r\n\r\n{path}\\node_modules\\msgpack\u003eif not defined npm_config_node_gyp (node \"C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin\\\\..\\..\\node_modules\\node-gyp\\bin\\node-gyp.js\" rebuild ) else (node \"C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js\" rebuild )\r\ngyp ERR! configure error\r\ngyp ERR! stack Error: Command failed: C:\\Path\\To\\Python\\Python36\\python.EXE -c import sys; print \"%s.%s.%s\" % sys.version_info[:3];\r\ngyp ERR! stack File \"\u003cstring\u003e\", line 1\r\ngyp ERR! stack import sys; print \"%s.%s.%s\" % sys.version_info[:3];\r\ngyp ERR! stack ^\r\ngyp ERR! stack SyntaxError: invalid syntax\r\ngyp ERR! stack\r\ngyp ERR! stack at ChildProcess.exithandler (child_process.js:276:12)\r\ngyp ERR! stack at emitTwo (events.js:126:13)\r\ngyp ERR! stack at ChildProcess.emit (events.js:214:7)\r\ngyp ERR! stack at maybeClose (internal/child_process.js:915:16)\r\ngyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)\r\ngyp ERR! System Windows_NT 10.0.17134\r\ngyp ERR! command \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd {path}\\node_modules\\msgpack\r\ngyp ERR! node -v v8.12.0\r\ngyp ERR! node-gyp -v v3.8.0\r\ngyp ERR! not ok\r\nnpm WARN photo-manager-fileserver No repository field.\r\nnpm WARN photo-manager-fileserver No license field.\r\n\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! msgpack@1.0.2 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the msgpack@1.0.2 install script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR! {APPDATA}\\npm-cache\\_logs\\2018-11-10T15_28_49_571Z-debug.log\r\n```\r\n\r\nBecause I have Python 3.6 in my PATH, it attempts to use that to run a command which is designed for Python 2, so it fails to install.\r\n\r\nI then ran the following:\r\n```\r\nset PATH=C:\\Python27;C:\\Program Files\\nodejs\r\nnpm install --save msgpack\r\n```\r\n\r\n...and the installation worked fine. However, this step shouldn't be necessary, and I wouldn't have thought that having Python 3 in the PATH was such an unusual circumstance.\r\n\r\nI don't know enough about NPM packaging to understand where the problem is (or how it might be fixed) but this seemed like the best place to post this issue.","author":{"url":"https://github.com/zsmith3","@type":"Person","name":"zsmith3"},"datePublished":"2018-11-10T17:08:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/46/msgpack-node/issues/46"}
| 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:9e29a5b5-f1ed-bff3-ee8b-e5d11c6cd1ae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E280:208D24:BA8E00:EEA377:698FDCEE |
| html-safe-nonce | 20628b03bcb07637e57b55c55e8ab3f916b9b107b64ca912fa0bc963e35e42ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjgwOjIwOEQyNDpCQThFMDA6RUVBMzc3OjY5OEZEQ0VFIiwidmlzaXRvcl9pZCI6IjMzNTU3OTIwOTkxNDQzNTkxNTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a2ca31ec50b0eb55a4b5014b7ba0ecaf3f043417d10f44475f93e41636be5160 |
| hovercard-subject-tag | issue:379439991 |
| 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/msgpack/msgpack-node/46/issue_layout |
| twitter:image | https://opengraph.githubassets.com/229e3c855c7d75afecfc94727339b91c3e0f71cdc93d0ba98abcd533868457fb/msgpack/msgpack-node/issues/46 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/229e3c855c7d75afecfc94727339b91c3e0f71cdc93d0ba98abcd533868457fb/msgpack/msgpack-node/issues/46 |
| og:image:alt | I run the following: npm install msgpack and get: > msgpack@1.0.2 install {path}\node_modules\msgpack > node-gyp rebuild {path}\node_modules\msgpack>if not defined npm_config_node_gyp (node "C:\Pro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zsmith3 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/msgpack/msgpack-node git https://github.com/msgpack/msgpack-node.git |
| octolytics-dimension-user_id | 198264 |
| octolytics-dimension-user_login | msgpack |
| octolytics-dimension-repository_id | 7430783 |
| octolytics-dimension-repository_nwo | msgpack/msgpack-node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7430783 |
| octolytics-dimension-repository_network_root_nwo | msgpack/msgpack-node |
| 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 | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width