[Newbies] 求助,deepin下 npm install git仓库 验证https失败
Tofloor
poster avatar
criska
deepin
2021-12-01 16:58
Author

求助,在deepin 下使用npm install git+仓库名,会收到如下报错


npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t 仓库地址
npm ERR!
npm ERR! remote: Invalid username or password
npm ERR! fatal: Authentication failed for '仓库地址'
npm ERR!
npm ERR! exited with error code: 128

我已经使用如下命令配置了仓库的用户名和密码,但好像并不生效,求助,感激不尽!!!!

git config user.name "Username"
git config user.password "Password"
git config --global user.name "Username"
git config --global user.password "Password"
Reply Favorite View the author
All Replies
criska
deepin
2021-12-01 17:06
#1

还有在vscode的终端下进行git 操作 ,不加sudo会报权限错误

Reply View the author
zeno
deepin developers team
2021-12-01 18:41
#2

配置一下 git config --global url."https://".insteadOf git:// 试试

Reply View the author