npm ERR! code 128npm ERR! An unknown git error occurrednpm ERR! command git --no-replace-objects l

这篇具有很好参考价值的文章主要介绍了npm ERR! code 128npm ERR! An unknown git error occurrednpm ERR! command git --no-replace-objects l。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

背景:

在安装vue-element-admin 项目所需依赖时,出现了如下报错信息

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

npm ERR! A complete log of this run can be found in:
npm ERR!     D:\Develo\nodejs\node_cache\_logs\2022-02-23T03_34_18_949Z-debug-0.log

解决办法:

1、使用下面的命令,达到,把地址里的 ssh://git@ 换成 https:// 的目的

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

2、然后重新通过 npm install 安装项目依赖

npm install

效果图:

npm err! code 128 npm err! an unknown git error occurred,Web前端,git,npm,github

npm err! code 128 npm err! an unknown git error occurred,Web前端,git,npm,github 

 npm err! code 128 npm err! an unknown git error occurred,Web前端,git,npm,github

 文章来源地址https://www.toymoban.com/news/detail-525507.html

到了这里,关于npm ERR! code 128npm ERR! An unknown git error occurrednpm ERR! command git --no-replace-objects l的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • npm ERR! exited with error code: 128终极解决办法

    报错信息:npm ERR! E:toolsGittGitcmdgit.EXE ls-remote -h -t https://github.com/nhn/raphael.git npm ERR! npm ERR! fatal: unable to access \\\'https://github.com/nhn/raphael.git/\\\': OpenSSL SSL_read: Connection was reset, errno 10054 npm ERR! npm ERR! exited with error code: 128 升级npm,配置https都不行  git config --global url.\\\"https://\\\".instea

    2024年02月07日
    浏览(49)
  • vscode执行npm install 报错(npm ERR! code 128...raphael.git...)的解决办法

    报错信息如下: 注意:以下命令在终端执行后,会在 C:Users用户名 目录下的.gitconfig文件中保存相应内容,如果某条内容报错,可手动删除.gitconfig中的内容后重新执行。 方法1 在项目目录下创建文件: .npmrc ,然后在里面添加如下内容: 接着在vscode的终端执行如下命令: 方

    2024年02月10日
    浏览(34)
  • 解决npm install下载不下来包依赖,提示:An unknown git error occurred

    将git上的项目拉到本地之后,进行npm i的时候发现下载不下来包依赖,并提示:An unknown git error occurred,如图所示: 解决办法: 1、使用下面的命令,把地址里的 ​​ssh://git@​​​ 换成 ​​https://​​ git config --global url.“https://”.insteadOf ssh://git@ 2、重新npm i 就可以了 npm i 如

    2024年02月11日
    浏览(32)
  • 【已解决】npm安装依赖报错: npm ERR! cb() never called! npm ERR! This is an error with npm itself.

    用npm安装依赖报错: 这个问题困扰了我几天,网上答案五花八门,不过对我来说,那些方法都没有效果,记录一下我解决这个错误的步骤,如下: 删除下载好的node_modules 删除package-lock.json文件 清除npm缓存 npm cache clean npm install

    2024年02月20日
    浏览(56)
  • appium踩坑(VIVO手机)报错:An unknown server-side error occurred while processing the command.Original error

    appium报错:Failed to create session. An unknown server-side error occurred while proces....... 1、appium管理员身份运行,重新填写配置中的ANDROID_HOME和JAVA_HOME 2、appium地址从127.0.0.1 改为0.0.0.0 3、运行Inspector host地址改为localhost其他保持不变 可成功运行Inspector,不知道哪一步解决的,总之在127.0

    2024年04月28日
    浏览(31)
  • npm 装包报错 npm ERR cb() never called npm ERR This is an error with npm itself. Please report this

    node.js 版本过高 Vue2 项目使用 12开头 的 Node.js版本 ,Vue3项目使用 16开头 的 Node.js 版本(我 Vue2 用 12.18.0,Vue3 用 16.14.0) 同时按下 Win+R 键后输入 cmd ,然后回车打开小黑窗,输入 node -v 方法一:重装 Node ( 不推荐 ) 不推荐这个方法 ,想切换 node 版本又得卸载重装,很不方便

    2024年02月12日
    浏览(31)
  • Appium如何解决报错:An unknown server-side error occurred while processing the command. Original error: Er

    使用appium客户端连接小米手机失败,完整报错信息如下: An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: ‘Command ‘{已隐藏}/Library/Android/sdk/platform-tools/adb -P 5037 -s fca2117a shell settings delete global hidden_api_policy_pre_p_apps’ exited with c

    2024年04月15日
    浏览(53)
  • jenkins 配置git 提示“无法连接仓库:Command “git ls-remote -h -- gitxxxxxxxxx status code 128”

    无法连接仓库:Command “git ls-remote -h – git@codeup.aliyun.com:xxxxxxxxxxxxxxx/xxxxxx.git HEAD” returned status code 128: stdout: stderr: Load key “/tmp/jenkins-gitclient-ssh14549883685367104196.key”: error in libcrypto git@codeup.aliyun.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you h

    2024年02月05日
    浏览(33)
  • 【Appium】Failed to create session. An unknown server-side error occurred while processing the command

    报错信息: 遇到这些错误的时候,我们要把 手机开发者模式的这三个选项都打开 : 因为它要安装一个软件: 第一次调试的时候手机端会弹出来个密钥确定的窗口,大概意思就是是否同意这个计算机对自己的电脑进行调试,要点同意。 然后 手机一定要安装好要进行调试的软

    2024年02月16日
    浏览(49)
  • Error code: 128 通常是Git返回的错误代码

    这个错误信息表明在从GitHub克隆存储库时发生了问题。 导致错误的原因可能是网络或, 未初始化为 Git 仓库 者是其他原因。 我采用解决方法:直接clone到目标仓库,然后重新运行终端就可以了。 git clone https://github.com/Stability-Al/stablediffusion.git \\\"D:AIstable-diffusion-webuirepositori

    2024年03月18日
    浏览(49)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包