退出码:128 命令:git 主机密钥验证失败。fatal:无法从远程存储库读取 |电子邮件js

Exit code: 128 Command: git Host key verification failed. fatal: Could not read from remote repository | emailjs

提问人:Lakshay Rohilla 提问时间:9/3/2023 更新时间:9/3/2023 访问量:167

问:

我正在尝试在项目中添加emailjs,我使用的命令是.
虽然我收到以下错误。
yarn add emailjs/browser

PS C:\Users\sms\My-Portfolio> yarn add emailjs/browser
yarn add v1.22.19
[1/4] Resolving packages...
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads ssh://[email protected]/emailjs/browser.git
Directory: C:\Users\sms\My-Portfolio
Output:
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

enter image description here

我找到了一个解决方案,以防纱线本身导致安装问题,但我无法弄清楚如何处理特定的库。
友情链接 - https://github.com/yarnpkg/yarn/issues/3303

javascript reactjs git 电子邮件 yarn-v2

评论


答:

0赞 Lakshay Rohilla 9/3/2023 #1

emailjs 的文档在这里作为参考部分。 使用 yarn 添加 emailjs 的正确命令是 使用 npm 添加它的命令是
或 。



使用 yarn 成功安装 emailjs 的示例
yarn add @emailjs/browsernpm i @emailjs/browsernpm install @emailjs/browser enter image description here