环境
Mac M1
使用nvm 安装的 node: v16.5.0 , npm: 7.19.1
使用命令npm install -g commitizen@4.2.4
安装是没报错,成功安装上的,但是当我运行 git cz 就提示
Could not resolve /Users/leo/imooc-learning/imooc-admin/node-modules/cz-customizable. Cannot find module '/Users/leo/imooc-learning/imooc-admin/node-modules/cz-customizable’
Require stack:
- /Users/leo/.nvm/versions/node/v16.5.0/lib/node_modules/commitizen/dist/commitizen/adapter.js
- /Users/leo/.nvm/versions/node/v16.5.0/lib/node_modules/commitizen/dist/commitizen.js
- /Users/leo/.nvm/versions/node/v16.5.0/lib/node_modules/commitizen/dist/cli/git-cz.js
- /Users/leo/.nvm/versions/node/v16.5.0/lib/node_modules/commitizen/bin/git-cz.js
- /Users/leo/.nvm/versions/node/v16.5.0/lib/node_modules/commitizen/bin/git-cz
列出了所需模块,我根据目录去找,也是能找到对应的模块的,网上也没搜索到相关资料。麻烦老师指导一下