vue-element-admin icon indicating copy to clipboard operation
vue-element-admin copied to clipboard

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

Open StarSilverBoat opened this issue 2 years ago • 4 comments

拉取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 [email protected] to update! npm notice code 128 npm ERR! An unknown git error occurred npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/nhn/raphael.git npm ERR! [email protected]: 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

StarSilverBoat avatar Apr 07 '22 03:04 StarSilverBoat

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

scoful avatar Apr 08 '22 07:04 scoful

me too

race616 avatar Apr 10 '22 04:04 race616

@race616 我已经解决了呀

scoful avatar Apr 10 '22 07:04 scoful

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

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

WvvvWv avatar Apr 14 '22 05:04 WvvvWv