【问题标题】:TESTRPC install ERR from npm Node.jsTESTRPC 从 npm Node.js 安装 ERR
【发布时间】:2017-06-24 16:03:06
【问题描述】:

我对 node.js 很陌生,这是我第一次使用 npm 安装。我有很多 ERR 行,我不确定它出了什么问题。

我试图在我的 OS X 中安装 TESTRPC。刚刚安装了 node js 并使用命令

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

【问题讨论】:

    标签: node.js solidity


    【解决方案1】:

    问题来自 testRPC 正在使用的依赖项之一。 更准确地说 Bignumber.js 我认为发生的事情是开发人员通过克隆 ssh 链接而不是 https 来添加它,这可能是一个分叉版本,这就是原因。

    现在可能由开发人员自己解决了,所以您只需安装它,它就完美了。 或者您使用没有此问题的旧版本。

    或者您手动克隆项目更改 package.json 并通过它的 https 链接引用 bignumber.js,最后删除 .git 然后运行 ​​npm install

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-07-16
      • 2015-08-31
      • 2022-01-17
      • 1970-01-01
      • 2018-08-22
      • 2020-12-02
      • 2015-09-09
      • 1970-01-01
      相关资源
      最近更新 更多