不知道为啥npm安装依赖git会报错,之前安装都没有错,今天拿了一个新电脑安装就报错了
你有一个依赖项 https://github.com/nhn/raphael 是通过 git 安装的。
错误提示上写的是你没设置公钥。
如楼上所说,设置一个公钥,或者可以尝试使用 https 协议安装
npm i git+https://github.com/nhn/raphael.git
也许你可以检查下你的.npmrc文件
.npmrc
10 回答11.1k 阅读
6 回答3k 阅读
5 回答4.8k 阅读✓ 已解决
4 回答3.1k 阅读✓ 已解决
2 回答2.7k 阅读✓ 已解决
3 回答5.1k 阅读✓ 已解决
3 回答1.9k 阅读✓ 已解决
1 回答891 阅读✓ 已解决
3 回答4.3k 阅读✓ 已解决
1 回答1.5k 阅读
3 回答6.9k 阅读
604 阅读
你有一个依赖项 https://github.com/nhn/raphael 是通过 git 安装的。
错误提示上写的是你没设置公钥。