Open boxsnake opened 3 years ago
This is not only in zsh, I tested in cmd env, and got the same error.
Result for node -e "console.log(require.resolve('./node_modules/cz-conventional-changelog'))"
in zsh is:
E:\Projects\Github\boxsnake\update-vue2-vite\node_modules\cz-conventional-changelog\index.js
OS Version: Windows 10 ver 1909 (18363.1500) node version: v14.10.0 npm version: v6.14.8
In my situation, I installed msys2 & zsh on Windows, and I use zsh as my shell. My Node.JS is Windows version.
When I use commitizen, it fails in resolve the path for
cz-conventional-changelog
.In my
package.json
When I use
npm run commit
, it gives:PS. When I use
node -e 'console.log(process.cwd())'
in zsh environment, it gives Windows formatted path: