在server下执行 npm install报错
来源:13-2 Mediasoup Demo的布署

IEMc
2022-04-07
The authenticity of host ‘github.com (20.205.243.166)’ can’t be established.
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
npm ERR! git clone --template=/home/u/.npm/_git-remotes/_templates --mirror git@github.com:versatica/mediasoup.git /home/u/.npm/_git-remotes/git-github-com-versatica-mediasoup-git-v3-d2058d44: 克隆到纯仓库 ‘/home/u/.npm/_git-remotes/git-github-com-versatica-mediasoup-git-v3-d2058d44’…
npm ERR! git clone --template=/home/u/.npm/_git-remotes/_templates --mirror git@github.com:versatica/mediasoup.git /home/u/.npm/_git-remotes/git-github-com-versatica-mediasoup-git-v3-d2058d44: Warning: Permanently added ‘github.com,20.205.243.166’ (ECDSA) to the list of known hosts.
npm ERR! git clone --template=/home/u/.npm/_git-remotes/_templates --mirror git@github.com:versatica/mediasoup.git /home/u/.npm/_git-remotes/git-github-com-versatica-mediasoup-git-v3-d2058d44: git@github.com: Permission denied (publickey).
npm ERR! git clone --template=/home/u/.npm/_git-remotes/_templates --mirror git@github.com:versatica/mediasoup.git /home/u/.npm/_git-remotes/git-github-com-versatica-mediasoup-git-v3-d2058d44: fatal: 无法读取远程仓库。
npm ERR! git clone --template=/home/u/.npm/_git-remotes/_templates --mirror git@github.com:versatica/mediasoup.git /home/u/.npm/_git-remotes/git-github-com-versatica-mediasoup-git-v3-d2058d44:
npm ERR! git clone --template=/home/u/.npm/_git-remotes/_templates --mirror git@github.com:versatica/mediasoup.git /home/u/.npm/_git-remotes/git-github-com-versatica-mediasoup-git-v3-d2058d44: 请确认您有正确的访问权限并且仓库存在。
npm ERR! Linux 5.4.0-107-generic
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” "install"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code 128
npm ERR! Command failed: git clone --template=/home/u/.npm/_git-remotes/_templates --mirror git@github.com:versatica/mediasoup.git /home/u/.npm/_git-remotes/git-github-com-versatica-mediasoup-git-v3-d2058d44
npm ERR! 克隆到纯仓库 ‘/home/u/.npm/_git-remotes/git-github-com-versatica-mediasoup-git-v3-d2058d44’…
npm ERR! Warning: Permanently added ‘github.com,20.205.243.166’ (ECDSA) to the list of known hosts.
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: 无法读取远程仓库。
npm ERR!
npm ERR! 请确认您有正确的访问权限并且仓库存在。
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /home/u/mediasoup-demo/server/npm-debug.log
1回答
-
李超
2022-04-07
你直接执行出错的这条命令看看能执行成功吗
042022-04-08
相似问题