不知道为啥npm安装依赖git会报错,之前安装都没有错,今天拿了一个新电脑安装就报错了
你有一个依赖项 https://github.com/nhn/raphael 是通过 git 安装的。
错误提示上写的是你没设置公钥。
如楼上所说,设置一个公钥,或者可以尝试使用 https 协议安装
npm i git+https://github.com/nhn/raphael.git
也许你可以检查下你的.npmrc文件
.npmrc
13 回答12.8k 阅读
8 回答2.6k 阅读
2 回答5.1k 阅读✓ 已解决
7 回答2k 阅读
5 回答910 阅读
3 回答2.2k 阅读✓ 已解决
3 回答1.1k 阅读✓ 已解决
1 回答1.1k 阅读✓ 已解决
3 回答4.5k 阅读✓ 已解决
1 回答1.6k 阅读
3 回答7k 阅读
660 阅读
你有一个依赖项 https://github.com/nhn/raphael 是通过 git 安装的。
错误提示上写的是你没设置公钥。