TESTRPC 从 npm 安装 ERR Node.js

TESTRPC install ERR from npm Node.js

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

我试图在我的 OS X 中安装 TESTRPC。刚刚安装了节点 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

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

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

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