Title: Node binary is not found (using Electron) · Issue #2 · systemjs/plugin-node-binary · GitHub
Open Graph Title: Node binary is not found (using Electron) · Issue #2 · systemjs/plugin-node-binary
X Title: Node binary is not found (using Electron) · Issue #2 · systemjs/plugin-node-binary
Description: Hi, It is not clear to me how exactly to use this package from the README. I have a "back-addon" module installed in the node_modules directory (using node-gyp). How should this package be declared in the systemjs configuration file in o...
Open Graph Description: Hi, It is not clear to me how exactly to use this package from the README. I have a "back-addon" module installed in the node_modules directory (using node-gyp). How should this package be declared...
X Description: Hi, It is not clear to me how exactly to use this package from the README. I have a "back-addon" module installed in the node_modules directory (using node-gyp). How should this package b...
Opengraph URL: https://github.com/systemjs/plugin-node-binary/issues/2
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Node binary is not found (using Electron)","articleBody":"Hi,\r\n\r\nIt is not clear to me how exactly to use this package from the README. I have a \"back-addon\" module installed in the node_modules directory (using node-gyp). How should this package be declared in the systemjs configuration file in order to be able to use `require(back-addon)` in javascript?\r\n\r\nFor all clarity, I am using Electron, but I don't see how this makes a difference.\r\n\r\nFor the moment I have tried this (binary is `node_modules/back-addon/back-addon.node`):\r\n\r\n System.config({\r\n defaultJSExtensions: false,\r\n paths: {\r\n\t 'npm:': 'node_modules/'\r\n },\r\n map: {\r\n 'node-binary': 'npm:systemjs-plugin-node-binary/node-binary.js',\r\n\t 'back-addon': 'npm:back-addon'\r\n },\r\n packages: {\r\n\t 'back-addon': {\r\n\t main: './back-addon.node',\r\n\t meta: {\r\n\t '*.node': {\r\n\t loader: 'node-binary'\r\n\t }\r\n\t }\r\n\t }\r\n }\r\n });\r\n\r\nThis gives the following error: \r\n\r\n Error: Error: Node binary file http://localhost:3000/node_modules/back-addon/back-addon.node does not exist.\r\n\t\tat http://localhost:3000/node_modules/systemjs-plugin-node-binary/node-binary.js:21:16\r\n\t\tat FSReqWrap.cb [as oncomplete] (fs.js:260:19)\r\n\t Error loading http://localhost:3000/node_modules/back-addon/back-addon.node as \"back-addon\" from http://localhost:3000/app/front/app/services/back/back.service.js\r\n (anonymous) @ (index):18\r\n ZoneDelegate.invoke @ zone.js:392\r\n Zone.run @ zone.js:142\r\n (anonymous) @ zone.js:844\r\n ZoneDelegate.invokeTask @ zone.js:425\r\n Zone.runTask @ zone.js:192\r\n drainMicroTaskQueue @ zone.js:602\r\n\r\nRemoving the \"main\" property in packages (i.e. what is described in the README) gives the following error:\r\n\r\n GET http://localhost:3000/node_modules/back-addon/ 404 (Not Found)","author":{"url":"https://github.com/giokara","@type":"Person","name":"giokara"},"datePublished":"2017-09-25T10:22:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2/plugin-node-binary/issues/2"}
| 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:1c6b20c2-a6c9-6056-b0be-9d7014b2eea6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DABC:36D50:3A427:49AD1:6991CDFE |
| html-safe-nonce | 0a560674ff534716dffd5e186c0eff0a0a371f7d6e169fb91eadf03eb7f88644 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUJDOjM2RDUwOjNBNDI3OjQ5QUQxOjY5OTFDREZFIiwidmlzaXRvcl9pZCI6IjEzMjE3Njk0NTk5NTY5NzY2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | de2d24db8ea257939222f9e67edb31aa777ebabac47ef12e5b54730b63722a84 |
| hovercard-subject-tag | issue:260224623 |
| 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/systemjs/plugin-node-binary/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c3ddf598ae85bac82c0e9d9302640f1fc7b56e81b26489fa5d1671b6daf2e397/systemjs/plugin-node-binary/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c3ddf598ae85bac82c0e9d9302640f1fc7b56e81b26489fa5d1671b6daf2e397/systemjs/plugin-node-binary/issues/2 |
| og:image:alt | Hi, It is not clear to me how exactly to use this package from the README. I have a "back-addon" module installed in the node_modules directory (using node-gyp). How should this package be declared... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | giokara |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/systemjs/plugin-node-binary git https://github.com/systemjs/plugin-node-binary.git |
| octolytics-dimension-user_id | 6577368 |
| octolytics-dimension-user_login | systemjs |
| octolytics-dimension-repository_id | 53729997 |
| octolytics-dimension-repository_nwo | systemjs/plugin-node-binary |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 53729997 |
| octolytics-dimension-repository_network_root_nwo | systemjs/plugin-node-binary |
| 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 | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width