PanJiaChen / vue-element-admin

:tada: A magical vue admin https://panjiachen.github.io/vue-element-admin
MIT License
87.59k stars 30.43k forks source link

npm install --registry=https://registry.npm.taobao.org安装依赖报错 #3956

Open StarSilverBoat opened 2 years ago

StarSilverBoat commented 2 years ago

拉取vue-element-admin代码后 执行 npm install --registry=https://registry.npm.taobao.org 报错了

报错信息如下 npm notice npm notice New minor version of npm available! 8.5.0 -> 8.6.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.6.0 npm notice Run npm install -g npm@8.6.0 to update! npm notice 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.

npm ERR! A complete log of this run can be found in: npm ERR! D:\nodejs\node_cache_logs\2022-04-07T03_14_14_597Z-debug-0.log

scoful commented 2 years ago
  1. 先试试修改host,可能是梯子不稳定 https://blog.csdn.net/Scoful/article/details/124042294
  2. 再试试修改git的协议头,把git://改成https:// https://blog.csdn.net/Scoful/article/details/124041645 @StarSilverBoat
race616 commented 2 years ago

me too

scoful commented 2 years ago

@race616 我已经解决了呀

WvvvWv commented 2 years ago
  1. 先尝试修改host,可能是梯子不稳定https://blog.csdn.net/Science/article/details/124042294
  2. 再尝试修改git的协议头,把git://改成https://https: //blog.csdn.net/Scoful/article/details/124041645 @StarSilverBoat

我只用的你说的第二个方法里的帖子搞得,解决了。