Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use special command execution tool to generate stats failed! #167

Closed
Razor0719 opened this issue Dec 28, 2020 · 1 comment
Closed

Use special command execution tool to generate stats failed! #167

Razor0719 opened this issue Dec 28, 2020 · 1 comment

Comments

@Razor0719
Copy link

when I use git bash, python3 to run the command, the error below throwed

in python3

C:\Users\Administrator\AppData\Roaming\npm\node_modules\git-stats\node_modules\cli-gh-cal\lib\index.js:53
    var CLI_COLUMNS = require('window-size').width;
                                            ^

TypeError: Cannot read property 'width' of undefined
    at CliGhCal (C:\Users\Administrator\AppData\Roaming\npm\node_modules\git-stats\node_modules\cli-gh-cal\lib\index.js:53:45)
    at C:\Users\Administrator\AppData\Roaming\npm\node_modules\git-stats\lib\index.js:512:24
    at C:\Users\Administrator\AppData\Roaming\npm\node_modules\git-stats\lib\index.js:413:9
    at C:\Users\Administrator\AppData\Roaming\npm\node_modules\git-stats\lib\index.js:314:9
    at C:\Users\Administrator\AppData\Roaming\npm\node_modules\git-stats\node_modules\r-json\lib\index.js:23:13
    at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:61:3)

image

in git bash

$ git stats
C:\Users\Administrator\AppData\Roaming\npm\node_modules\git-stats\node_modules\cli-gh-cal\lib\index.js:53
    var CLI_COLUMNS = require('window-size').width;
                                            ^

TypeError: Cannot read property 'width' of undefined
    at CliGhCal (C:\Users\Administrator\AppData\Roaming\npm\node_modules\git-stats\node_modules\cli-gh-cal\lib\index.js:53:45)
    at C:\Users\Administrator\AppData\Roaming\npm\node_modules\git-stats\lib\index.js:512:24
    at C:\Users\Administrator\AppData\Roaming\npm\node_modules\git-stats\lib\index.js:413:9
    at C:\Users\Administrator\AppData\Roaming\npm\node_modules\git-stats\lib\index.js:314:9
    at C:\Users\Administrator\AppData\Roaming\npm\node_modules\git-stats\node_modules\r-json\lib\index.js:23:13
    at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:61:3)

also see the error on #151

@Razor0719 Razor0719 changed the title Use special command execution tool to generate html failed! Use special command execution tool to generate stats failed! Dec 28, 2020
@IonicaBizau
Copy link
Owner

I think you will have to set the COLUMNS and ROWS env variables in the child process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants