2017-06-24 37 views
0

我對node.js非常陌生,這是我第一次使用npm進行安裝。我得到了很多錯誤行,我不知道它出了什麼問題。TESTRPC從npm安裝ERR Node.js

我是想在剛安裝了我的OS X的節點JS安裝TESTRPC和使用命令

npm install -g ethereumjs-testrpc 

,但我得到錯誤信息

npm ERR! git clone --template=/Users/dion/.npm/_git-remotes/_templates 
--mirror https://github.com/debris/bignumber.js.git 
/Users/dion/.npm/_git-remotes/git-https-github-com-debris-bignumber-js- 
git-master-df3f1ce1: Cloning into bare repository 
'/Users/dion/.npm/_git-remotes/git-https-github-com-debris-bignumber- 
js-git-master-df3f1ce1'... 
npm ERR! git clone --template=/Users/dion/.npm/_git-remotes/_templates 
--mirror https://github.com/debris/bignumber.js.git 
/Users/dion/.npm/_git-remotes/git-https-github-com-debris-bignumber-js- 
git-master-df3f1ce1: remote: Repository not found. 
npm ERR! git clone --template=/Users/dion/.npm/_git-remotes/_templates 
--mirror https://github.com/debris/bignumber.js.git 
/Users/dion/.npm/_git-remotes/git-https-github-com-debris-bignumber-js- 
git-master-df3f1ce1: fatal: repository 
'https://github.com/debris/bignumber.js.git/' not found 
npm ERR! Darwin 15.5.0 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" 
"ethereumjs-testrpc" 
npm ERR! node v6.11.0 
npm ERR! npm v3.10.10 
npm ERR! code 128 

npm ERR! Command failed: git clone --template=/Users/dion/.npm/_git- 
remotes/_templates --mirror https://github.com/debris/bignumber.js.git 
/Users/dion/.npm/_git-remotes/git-https-github-com-debris-bignumber-js- 
git-master-df3f1ce1 
npm ERR! Cloning into bare repository '/Users/dion/.npm/_git- 
remotes/git-https-github-com-debris-bignumber-js-git-master- 
df3f1ce1'... 
npm ERR! remote: Repository not found. 
npm ERR! fatal: repository 
'https://github.com/debris/bignumber.js.git/' not found 
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at: 
npm ERR!  <https://github.com/npm/npm/issues> 

npm ERR! Please include the following file with any support request: 
npm ERR!  /Users/dion/npm-debug.log 

回答

0

問題是從一個依賴未來testRPC正在使用。 更準確地說Bignumber.js我認爲發生了什麼事是開發人員通過克隆ssh鏈接而不是https來添加它,可能它是一個分叉版本,這就是爲什麼。

要麼現在可能由開發人員自己解決,所以您只需安裝它,這是完美的。 或者您使用的舊版本沒有此問題。

或者您手動克隆項目更改package.json並通過它的https鏈接引用bignumber.js最後刪除.git然後運行npm install