[Ethereum區塊鏈] npm install truffle-hdwallet-provider error


使用

npm install truffle-hdwallet-provider

or

npm install truffle-hdwallet-provider



會發生

npm ERR! code ENOGIT
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-05-25T12_45_33_203Z-debug.log

這時候就是沒有安裝 git  , 請先安裝git

若讀者想使用二進位安裝程式安裝 Git 到 Linux,一般來說讀者可經由發行套件提供的套件管理工具完成此工作。若讀者使用 Fedora,可使用 yum
$ yum install git-core
若讀者在以 Debian 為基礎的發行套件,如:Ubuntu。 試試 apt-get
$ apt-get install git
這時候就可以解決了

PS 要先確定你的  npm 和 node 是否為最新版


留言

  1. Invest in Ethereum on eToro the World's Leading Social Trading Network!!!

    Join 1,000,000's who have already discovered easier strategies for investing in Ethereum.

    Learn from profitable eToro traders or copy their trades automatically.

    回覆刪除

張貼留言

這個網誌中的熱門文章

angular 如何Http 如何設定 CORS (Cross-Origin Resource Sharing)

Google Map 單車路徑計算坡度和角度小工具

Google URL Shortener API 快速教學