From cf9f8a066f97cc76bf15893147827cd5eb09883f Mon Sep 17 00:00:00 2001 From: Bond Date: Sat, 20 Jan 2018 22:28:32 +0100 Subject: [PATCH 1/3] Document using the --info flag to get environment info --- .github/ISSUE_TEMPLATE.md | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index ca97a668bab..63eceb51437 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -76,18 +76,26 @@ ### Environment + To help identify if a problem is specific to a platform, browser, or module version, information about your environment is required. + This enables the maintainers quickly reproduce the issue and give feedback. -1. `node -v`: -2. `npm -v`: -3. `yarn --version` (if you use Yarn): -4. `npm ls react-scripts` (if you haven’t ejected): + Run the command specific to your operating system in your react app's folder + + Windows: `create-react-app --info | clip` + macOS: `create-react-app --info | pbcopy` + Linux: `create-react-app --info` + + If you get an error, you can use `npx` or `yarn` by running one of the commands below in terminal. + + npx create-react-app --info + yarn create react-app --info -Then, specify: + Paste the output of the command in the section below. +--> +(paste the output of the command here) -1. Operating system: -2. Browser and version (if relevant): +Then, specify: +1. Browser and version (if relevant) ### Steps to Reproduce From 7a297f6abbfb01d7042f8a470e88101298249ec4 Mon Sep 17 00:00:00 2001 From: Bond Date: Sun, 21 Jan 2018 10:53:11 +0100 Subject: [PATCH 2/3] Recommend using npx to avoid errors --- .github/ISSUE_TEMPLATE.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 63eceb51437..83c4cc7dec4 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -79,17 +79,11 @@ To help identify if a problem is specific to a platform, browser, or module version, information about your environment is required. This enables the maintainers quickly reproduce the issue and give feedback. - Run the command specific to your operating system in your react app's folder + Run the following command in your react app's folder in terminal. + Note: The result is copied to your clipboard directly. - Windows: `create-react-app --info | clip` - macOS: `create-react-app --info | pbcopy` - Linux: `create-react-app --info` + npx -p create-react-app -p clipboard-cli -c 'create-react-app --info | clipboard' - If you get an error, you can use `npx` or `yarn` by running one of the commands below in terminal. - - npx create-react-app --info - yarn create react-app --info - Paste the output of the command in the section below. --> (paste the output of the command here) From 6567b73a5d3372da5738a8880851cf78223d2c1b Mon Sep 17 00:00:00 2001 From: Bond Date: Sun, 21 Jan 2018 11:23:42 +0100 Subject: [PATCH 3/3] make it work on windows --- .github/ISSUE_TEMPLATE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 83c4cc7dec4..e262238dc23 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -82,7 +82,7 @@ Run the following command in your react app's folder in terminal. Note: The result is copied to your clipboard directly. - npx -p create-react-app -p clipboard-cli -c 'create-react-app --info | clipboard' + npx -p create-react-app -p clipboard-cli -c "create-react-app --info | clipboard" Paste the output of the command in the section below. -->