npm install 显示错误,未找到 git

2024-01-12

我最近向包 JSON 添加了一些依赖项并尝试安装 npm,但它显示与 git not find 相关的错误:

npm 错误!路径git
npm 错误!代码 ENOENT
npm 错误!错误信息
npm 错误!系统调用派生 git
npm 错误! enoent 执行时出错:
npm 错误! enoent 未定义 ls-remote -h -t ssh://[电子邮件受保护] /cdn-cgi/l/email-protection/eligrey/FileSaver.js.git
npm 错误!埃诺恩特
npm 错误!埃诺恩特
npm 错误! enoent 生成 git ENOENT
npm 错误! enoent 这与 npm 找不到文件有关。 npm 错误!埃诺恩特
npm 错误!此运行的完整日志可以在以下位置找到:


你需要install https://git-scm.com/downloads git在你的机器上让它工作。

undefined ls-remote -h -t ssh://[email protected] /cdn-cgi/l/email-protection/eligrey/FileSaver.js.git

本来应该是

git ls-remote -h -t ssh://[email protected] /cdn-cgi/l/email-protection/eligrey/FileSaver.js.git

存在与 git 路径相关的错误。检查这个 ls-remote 命令 https://riptutorial.com/git/example/1486/ls-remote

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

npm install 显示错误,未找到 git 的相关文章

随机推荐