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

报错:ERR_INVALID_ARG_TYPE #163

Closed
wormtql opened this issue Jun 20, 2022 · 1 comment
Closed

报错:ERR_INVALID_ARG_TYPE #163

wormtql opened this issue Jun 20, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@wormtql
Copy link

wormtql commented Jun 20, 2022

  • version: 0.2.27
  • node version: 16.15.1
  • npm version: 8.11.0
  • your description:
    gogocode -s package.json -t gogocode-plugin-vue -o package.json报错:
Error: npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

    at Object.getCmdOutput (C:\Users\58413\AppData\Roaming\npm\node_modules\gogocode-cli\src\util\cmd.js:26:19)
    at Object.getNpmPackage (C:\Users\58413\AppData\Roaming\npm\node_modules\gogocode-cli\src\util\check.js:18:36)
    at C:\Users\58413\AppData\Roaming\npm\node_modules\gogocode-cli\src\util\check.js:39:40
    at new Promise (<anonymous>)
    at Object.checkUpdate (C:\Users\58413\AppData\Roaming\npm\node_modules\gogocode-cli\src\util\check.js:38:16)
    at C:\Users\58413\AppData\Roaming\npm\node_modules\gogocode-cli\index.js:13:17
    at Object.<anonymous> (C:\Users\58413\AppData\Roaming\npm\node_modules\gogocode-cli\index.js:46:3)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
? source path and output path is same. source file will be rewrite! to be continue? Yes

transform start

Error: npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

    at Object.getCmdOutput (C:\Users\58413\AppData\Roaming\npm\node_modules\gogocode-cli\src\util\cmd.js:26:19)
    at Object.getGlobalPath (C:\Users\58413\AppData\Roaming\npm\node_modules\gogocode-cli\src\util\check.js:27:36)
    at C:\Users\58413\AppData\Roaming\npm\node_modules\gogocode-cli\src\commands\transform.js:227:42
    at new Promise (<anonymous>)
    at requireTransforms (C:\Users\58413\AppData\Roaming\npm\node_modules\gogocode-cli\src\commands\transform.js:212:12)
    at C:\Users\58413\AppData\Roaming\npm\node_modules\gogocode-cli\src\commands\transform.js:404:9
    at Array.map (<anonymous>)
    at handleCommand (C:\Users\58413\AppData\Roaming\npm\node_modules\gogocode-cli\src\commands\transform.js:403:25)
    at C:\Users\58413\AppData\Roaming\npm\node_modules\gogocode-cli\src\commands\transform.js:435:13
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received null
    at new NodeError (node:internal/errors:372:5)
    at validateString (node:internal/validators:120:11)
    at Object.join (node:path:429:7)
    at C:\Users\58413\AppData\Roaming\npm\node_modules\gogocode-cli\src\commands\transform.js:230:37
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  code: 'ERR_INVALID_ARG_TYPE'
}
@wormtql wormtql added the bug Something isn't working label Jun 20, 2022
@xianmings
Copy link

npm/cli#4980 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants