解决npm install 报错 npm ERR! code 128 npm ERR! command failed npm ERR! command git ls-remote ssh://g
一、桌面右键,git bash here 输入 git config --global user.name " 名 "
二、输入git config --global user.email " 邮箱 "
三、输入以下 ssh-keygen -t rsa -C “邮箱” 或者“ssh-keygen -t rsa -N ” -f ~/.ssh/id_rsa -q -b 2048 -C “邮箱”” 出现 overwrite输入y 输入密码的时候直接回车
四、进入:c盘->用户->你的用户名->.ssh->id_rsa.pub(用记事本打开)复制
五、打开github右上角头像->settings->ssh & GPG ->Add sshKeys
六、# 克隆项目
git clone https://github.com/PanJiaChen/vue-element-admin.git
七、用编译工具打开下载下来的项目然后终端:npm install
八、运行项目:npm run dev