gogocode icon indicating copy to clipboard operation
gogocode copied to clipboard

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received null

Open jacklu2016 opened this issue 2 years ago • 4 comments

  • version: 最新
  • playground demo:
  • your description: npm install gogocode-cli -g // 安装工具

gogocode -s ./src -t gogocode-plugin-vue -o ./src-out // 升级代码 执行这一步报错: 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\jack\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' }

jacklu2016 avatar Jul 27 '22 03:07 jacklu2016

npm 更新到 >=8.12.1 就好了

sh-winter avatar Sep 16 '22 06:09 sh-winter

npm 更新到 >=8.12.1 就好了

为什么还是不行

junjunmo avatar Nov 29 '22 06:11 junjunmo

npm 9.4.2,一樣有問題,要升級到 node 18 才好(本來是16) Windows 11

urakagi avatar Mar 27 '23 01:03 urakagi

把 npm 更新到 >=8.12.1 就好了 --- 大佬真棒,一试就好了

wy6395727 avatar Dec 18 '23 02:12 wy6395727