撸vue-element-admin项目报错npm ERR! code 128与npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/nhn/raphael.git
- 背景
- 错误
- 解决方法
背景
vue-element-admin框架在npm install 时报错
错误
安装依赖时,报缺少秘钥
npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/nhn/raphael.git
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
解决方法
登录github网站后,重新npm install --registry=https://registry.npm.taobao.org 或者npm install