gogocode
gogocode copied to clipboard
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received null
- 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' }
把 npm
更新到 >=8.12.1
就好了
把
npm
更新到>=8.12.1
就好了
为什么还是不行
npm 9.4.2
,一樣有問題,要升級到 node 18
才好(本來是16)
Windows 11
把 npm 更新到 >=8.12.1 就好了 --- 大佬真棒,一试就好了