Title: tns plugin add
Open Graph Title: tns plugin add
X Title: tns plugin add
Description: tns plugin add
Open Graph Description: tns plugin add
X Description: tns plugin add <plugin> has some issues with stdin when postinstall is using inquirer. For example create plugin that has the following postinstall script: "postinstall": "npm ...
Opengraph URL: https://github.com/NativeScript/nativescript-cli/issues/1610
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tns plugin add \u003cplugin> has issues with postinstall scripts","articleBody":"`tns plugin add \u003cplugin>` has some issues with stdin when postinstall is using inquirer.\nFor example create plugin that has the following postinstall script:\n\n```\n\"postinstall\": \"npm install inquirer && node myScript.js\"\n```\n\nwhere myScript.js is something like:\n\n``` JavaScript\nvar inquirer = require('inquirer');\nvar quest = {\n 'name': 'myinq',\n 'type': 'input',\n 'message': 'Ask something: ',\n 'default': undefined\n};\n\nfunction promptForEmail() {\n inquirer.prompt([quest],\n function(answers) {\n console.log(\"answers:\", answers);\n });\n}\n\npromptForEmail();\n```\n\nIn case you call `npm install \u003cplugin>` the prompt is executed correctly and user can type.\nIn case you call `tns plugin add \u003cplugin>` the user's input is slowed down, some symbols are not shown at all, etc.\n\nRequired for `nativescript-telerik-ui`.\n\n\u003c!---\n@huboard:{\"order\":1271.59375,\"milestone_order\":1610,\"custom_state\":\"\"}\n-->\n","author":{"url":"https://github.com/rosen-vladimirov","@type":"Person","name":"rosen-vladimirov"},"datePublished":"2016-03-15T15:42:00Z","url":"https://github.com/NativeScript/nativescript-cli/issues/1610"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:280d998c-e22d-df02-7c72-fa8b4074b768 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E846:323204:59EC00:76F001:6B01A04A |
| html-safe-nonce | 53d20e61ba62dee24a0f1967a4dffbe5a97fc4355507255aa2a49a5ab51e5335 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODQ2OjMyMzIwNDo1OUVDMDA6NzZGMDAxOjZCMDFBMDRBIiwidmlzaXRvcl9pZCI6Ijc5ODM0MjIyNjAyNjQ0MTEyMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e3d0fef2835949284cbaaf347767907311582ea90dc83b80392ff7bebf549034 |
| hovercard-subject-tag | issue:141013226 |
| 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/NativeScript/nativescript-cli/1610/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dbd12a9588442364799179de39be88519405ec07e78f90dca1bbe237d77dc5e9/NativeScript/nativescript-cli/issues/1610 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dbd12a9588442364799179de39be88519405ec07e78f90dca1bbe237d77dc5e9/NativeScript/nativescript-cli/issues/1610 |
| og:image:alt | tns plugin add |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rosen-vladimirov |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 21347346 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21347346 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-cli |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width