1.安装npm环境依赖包时报错
原因:进入的目录不对
解决方法:应该进入到package.json所在的目录
2.装脚手架报下面的错误
原因:主要原因是安装vue的版本过低
解决方案:npm install -g @vue/cli --force
强制覆盖以前旧版本的vue-cli脚手架
3.创建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用户名和邮箱
解决方法:设置用户名和邮箱
1.查看用户名和邮箱
git config user.name
git config user.email
2.修改用户名和邮箱
git config --global user.name "your name"
git config --global user.email "your email"