创建vue项目的时候报错: WARN Skipped git commit due to missing username and email in git config, or failed to sign commit. You will need to perform the initial commit yourself.

原因:
- git 进行初始化提交 没有绑定 对应的 git用户名和邮箱
解决:
- 终端进行配置 以此进行输入即可 只要不报错就没有问题
git config --global user.name "xxxx"git config --global user.email "xxxx"
- 配置完成后进行查看
- 查看配置的用户名:
git config user.name - 查看配置的邮箱名:
git config user.email
- 查看配置的用户名:

会遇到这个问题说明也会遇到 创建项目时 终端一直卡在 Generating README.md...
- 直接 Ctrl+c 退出完事

当创建Vue项目时遇到'WARN Skipped git commit due to missing username and email in config'错误,原因是git未绑定用户名和邮箱。解决方法是在终端使用`git config --global user.name yourname`和`git config --global user.email youremail@example.com`配置个人信息。配置后,通过`git config user.name`和`git config user.email`检查是否设置成功。如果在生成README.md时卡住,可以按Ctrl+C退出。

被折叠的 条评论
为什么被折叠?



