我在安装 @truffle/hdwallet provider 时遇到问题 [英] I am facing problem in installing @truffle/hdwallet provider

查看:685
本文介绍了我在安装 @truffle/hdwallet provider 时遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<块引用>

PS C:\Coding\blockchain-toolkit>npm i @truffle/hdwallet-providernpm 错误!代码 ENOENTnpm 错误!系统调用生成 gitnpm 错误!路径 gitnpm 错误!错误号npm 错误!enoent 执行时出错:npm 错误!enoent 未定义 ls-remote -h -thttps://github.com/trufflesuite/provider-engine.gitnpm 错误!恩恩特npm 错误!恩恩特npm 错误!enoent 生成 git ENOENTnpm 错误!enoent 这与 npm 无法找到文件有关.npm 错误!恩恩特

以下是我的环境的详细信息:

  • 操作系统:以太坊客户端:

  • 松露版本 (v.5.1.4):

  • 节点版本 (v12.14.0):

  • npm 版本 (6.13.4):

所有这些都是最新版本.

我该如何解决这个问题?

解决方案

我刚刚遇到了几个问题.

我设法解决了它.

你只需要在你的 PC 上安装 git

如果已安装,请在 cmd 'git --version' 中键入此命令如果它返回任何版本,你就很好

进入系统环境变量设置->系统变量->路径->粘贴你的git路径你的git路径->C->程序文件->git->bin->点击顶部的地址栏并复制路径然后粘贴到上面的过程中

现在应用设置,然后重启你的电脑

现在打开 cmd 并输入 git--version

你可以走了.

快乐编程:-)

PS C:\Coding\blockchain-toolkit> npm i @truffle/hdwallet-provider
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t
https://github.com/trufflesuite/provider-engine.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

Below are the details of my environment:

  • Operating System: Ethereum client:

  • Truffle version (v.5.1.4):

  • node version (v12.14.0):

  • npm version (6.13.4):

All these are the latest versions.

How can I solve this problem?

解决方案

I had several problem just.

I managed to solve it.

All you need is git installed in your PC

If installed type this command in cmd 'git --version' If it returns any version you are good else

go to system environment variables settings-> System variables-> Path-> paste your git path Your git path -> C->program files->git->bin->click on address bar on top and copy the path and then paste in above process

Now apply the settings and then restart your PC

Now open cmd and type git--version

You are good to go.

happy programming:-)

这篇关于我在安装 @truffle/hdwallet provider 时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆