when i run commitizen init cz-conventional-changelog --save --save-exact
wait for a long time....
throw error:
packeage1 requires a peer of react@^16.9.0 but none is installed. You must install peer dependencies yourself.
packeage2 requires a peer of react@^16.9.0 but none is installed. You must install peer dependencies yourself.
packeage3 requires a peer of react@^16.9.0 but none is installed. You must install peer dependencies yourself.
packeage4 requires a peer of react@^16.9.0 but none is installed. You must install peer dependencies yourself.
.....
.....
.....
......
.......
npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/alsc/.npm/_logs/2021-10-28T12_59_59_604Z-debug.log
at checkExecSyncError (child_process.js:790:11)
at Object.execSync (child_process.js:863:15)
at init (/Users/alsc/.nvm/versions/node/v14.18.1/lib/node_modules/commitizen/dist/commitizen/init.js:1017:28)
at Object.bootstrap (/Users/alsc/.nvm/versions/node/v14.18.1/lib/node_modules/commitizen/dist/cli/commitizen.js:34:30)
at Object.<anonymous> (/Users/alsc/.nvm/versions/node/v14.18.1/lib/node_modules/commitizen/bin/commitizen.js:2:38)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19) {
status: 1,
signal: null,
output: [
null,
<Buffer >,
<Buffer 6e 70 6d 20 57 41 52 4e 20 40 61 6c 69 2f 62 6f 72 65 61 73 32 40 30 2e 39 2e 33 20 72 65 71 75 69 72 65 73 20 61 20 70 65 65 72 20 6f 66 20 72 65 61 ... 33801 more bytes>
],
pid: 1122,
stdout: <Buffer >,
stderr: <Buffer 6e 70 6d 20 57 41 52 4e 20 40 61 6c 69 2f 62 6f 72 65 61 73 32 40 30 2e 39 2e 33 20 72 65 71 75 69 72 65 73 20 61 20 70 65 65 72 20 6f 66 20 72 65 61 ... 33801 more bytes>
}
when i run
commitizen init cz-conventional-changelog --save --save-exact
wait for a long time....
throw error:
so how can i resolve this problem ?