GIT CZ的错误解决

zac@zac-System:/code/gittest$ git cz

/usr/local/lib/node_modules/commitizen/dist/commitizen/adapter.js:173
var parsed = _path2.default.parse(inboundAdapterPath);
^
TypeError: Object # has no method ‘parse’
at resolveAdapterPath (/usr/local/lib/node_modules/commitizen/dist/commitizen/adapter.js:173:31)
at gitCz (/usr/local/lib/node_modules/commitizen/dist/cli/strategies/git-cz.js:77:35)
at Object.bootstrap (/usr/local/lib/node_modules/commitizen/dist/cli/git-cz.js:31:27)
at Object. (/usr/local/lib/node_modules/commitizen/bin/git-cz.js:2:34)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)

你可能感兴趣的:(GIT CZ的错误解决)