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'
}
your description:
gogocode -s package.json -t gogocode-plugin-vue -o package.json
报错: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.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' }