一、问题描述:

npm install 安装报错 npm ERR git@github.com: Permission denied (publickey)

npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/mvayngrib/changes-feed.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.

二、解决方案:

在终端中输入: 将 ssh 下载方式改成 https

git config --global url."https://".insteadOf ssh://git
Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐