commitizen / commitizen/cz-cli

commitizen init: Maximum call stack size exceeded

Open
#854 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
17.5k
Forks
566
Avg merge
8h 16m
Merged PRs (30d)
1

Description

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. (/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,
,

],
pid: 1122,
stdout: ,
stderr:
}
```

so how can i resolve this problem ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.