ant-design / ant-design/ant-design-pro-cli
pro create 报错
- Dominant language
- JavaScript
- Stars
- 262
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
`kenny@kennydeMBP test % pro create test
? 🐂 使用 umi@4 还是 umi@3 ? umi@4
🧎🏻全量区块暂时不支持 umi@4
Cloning into 'test'...
fatal: unable to access 'https://github.com/ant-design/ant-design-pro/': Failed to connect to github.com port 443 after 3 ms: Connection refused
/usr/local/lib/node_modules/@ant-design/pro-cli/node_modules/execa/lib/error.js:60
error = new Error(message);
^
Error: Command failed with exit code 128: git clone https://github.com/ant-design/ant-design-pro --depth=1 test
at makeError (/usr/local/lib/node_modules/@ant-design/pro-cli/node_modules/execa/lib/error.js:60:11)
at handlePromise (/usr/local/lib/node_modules/@ant-design/pro-cli/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async AntDesignProGenerator.writing (/usr/local/lib/node_modules/@ant-design/pro-cli/src/create/generators/ant-design-pro/index.js:108:5) {
shortMessage: 'Command failed with exit code 128: git clone https://github.com/ant-design/ant-design-pro --depth=1 test',
command: 'git clone https://github.com/ant-design/ant-design-pro --depth=1 test',
escapedCommand: 'git clone "https://github.com/ant-design/ant-design-pro" "--depth=1" test',
exitCode: 128,
signal: undefined,
signalDescription: undefined,
stdout: undefined,
stderr: undefined,
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
`
Contributor guide
No contributing guide indexed for this repository
Research direction
The failure is reported at src/create/generators/ant-design-pro/index.js:108, where the CLI runs git clone through execa. Start by checking whether the clone failure can be reproduced and how this entry point handles it; the report does not define an expected behavior or a clear completion condition.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, javascript, nodejs
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100