diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index b5bed7fdd1..485e26ecae 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,10 +1,16 @@ * **Node Version**: @@ -19,6 +25,22 @@ Paste your log here, between the backticks. It can be: - npm --verbose output, - or contents of npm-debug.log, - or output of node-gyp rebuild --verbose. +Include the command you were trying to run. + +This should look like this: + +>npm --verbose +npm info it worked if it ends with ok +npm verb cli [ +npm verb cli 'C:\\...\\node\\13.9.0\\x64\\node.exe', +npm verb cli 'C:\\...\\node\\13.9.0\\x64\\node_modules\\npm\\bin\\npm-cli.js', +npm verb cli '--verbose' +npm verb cli ] +npm info using npm@6.13.7 +npm info using node@v13.9.0 + +Usage: npm +(...) ``` diff --git a/bin/node-gyp.js b/bin/node-gyp.js index 49b5721d02..8652ea21ec 100755 --- a/bin/node-gyp.js +++ b/bin/node-gyp.js @@ -131,9 +131,8 @@ function errorMessage () { function issueMessage () { errorMessage() - log.error('', ['This is a bug in `node-gyp`.', - 'Try to update node-gyp and file an Issue if it does not help:', - ' ' + log.error('', ['Node-gyp failed to build your package.', + 'Try to update npm and/or node-gyp and if it does not help file an issue with the package author.' ].join('\n')) }