Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Got an error [ERR_INVALID_ARG_TYPE] #760

Open
MatteoGauthier opened this issue Feb 15, 2020 · 5 comments
Open

Got an error [ERR_INVALID_ARG_TYPE] #760

MatteoGauthier opened this issue Feb 15, 2020 · 5 comments
Labels

Comments

@MatteoGauthier
Copy link

Version number
2.8.5

Describe the bug
when i type gh command i receive this

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object
    at validateString (internal/validators.js:112:11)
    at Object.resolve (path.js:139:9)
    at C:\Users\Mattaio\AppData\Roaming\npm\node_modules\gh\lib\cmds\help.js:47:67
    at async C:\Users\Mattaio\AppData\Roaming\npm\node_modules\gh\lib\cmds\help.js:47:19
    at async Promise.all (index 8)
    at async Object.run (C:\Users\Mattaio\AppData\Roaming\npm\node_modules\gh\lib\cmds\help.js:46:22)
    at async C:\Users\Mattaio\AppData\Roaming\npm\node_modules\gh\lib\cmd.js:178:13 {
  code: 'ERR_INVALID_ARG_TYPE'
}

To Reproduce
Steps to reproduce the behavior:

  1. Run Cmd 'gh'
  2. See error
@protoEvangelion
Copy link
Member

Are you using yarn 2 by any chance? I just saw this same error when upgrading, but am fixing now.

@MatteoGauthier
Copy link
Author

MatteoGauthier commented Mar 10, 2020 via email

@protoEvangelion
Copy link
Member

Does this seem to be resolved with the latest version of gh?

npm i -g gh@2.8.6

@MatteoGauthier
Copy link
Author

Got an error on the 2.8.6 version

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object
    at validateString (internal/validators.js:112:11)
    at Object.resolve (path.js:139:9)
    at C:\Users\Mattaio\AppData\Roaming\npm\node_modules\gh\lib\cmds\help.js:47:67
    at async C:\Users\Mattaio\AppData\Roaming\npm\node_modules\gh\lib\cmds\help.js:47:19
    at async Promise.all (index 8)
    at async Object.run (C:\Users\Mattaio\AppData\Roaming\npm\node_modules\gh\lib\cmds\help.js:46:22)
    at async C:\Users\Mattaio\AppData\Roaming\npm\node_modules\gh\lib\cmd.js:178:13 {
  code: 'ERR_INVALID_ARG_TYPE'
}

@protoEvangelion
Copy link
Member

What was the exact cmd you ran?

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

No branches or pull requests

2 participants