来自npm Node.js的TESTRPC安装错误

来自npm Node.js的TESTRPC安装错误,node.js,solidity,Node.js,Solidity,我是node.js的新手,这是我第一次使用npm安装。我有很多错误的线路,我不知道它出了什么问题 我试图在我的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.j

我是node.js的新手,这是我第一次使用npm安装。我有很多错误的线路,我不知道它出了什么问题

我试图在我的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
npm错误!git克隆--模板=/Users/dion/.npm/\u git-remotes/\u模板
--镜子https://github.com/debris/bignumber.js.git 
/Users/dion/.npm/_git-remotes/git https github com/bignumber js-
git-master-df3f1ce1:克隆到裸存储库
'/Users/dion/.npm/_git-remotes/git https github com bignumber-
js-git-master-df3f1ce1'。。。
npm错误!git克隆--模板=/Users/dion/.npm/\u git-remotes/\u模板
--镜子https://github.com/debris/bignumber.js.git 
/Users/dion/.npm/_git-remotes/git https github com/bignumber js-
git-master-df3f1ce1:未找到远程:存储库。
npm错误!git克隆--模板=/Users/dion/.npm/\u git-remotes/\u模板
--镜子https://github.com/debris/bignumber.js.git 
/Users/dion/.npm/_git-remotes/git https github com/bignumber js-
git-master-df3f1ce1:致命:存储库
'https://github.com/debris/bignumber.js.git/”“没有找到
npm错误!达尔文15.5.0
npm错误!argv“/usr/local/bin/node”“/usr/local/bin/npm”“安装”“-g”
“以太坊JS测试RPC”
npm错误!节点v6.11.0
npm错误!npm v3.10.10
npm错误!代码128
npm错误!命令失败:git clone--template=/Users/dion/.npm/\u git-
远程/_模板--镜像https://github.com/debris/bignumber.js.git 
/Users/dion/.npm/_git-remotes/git https github com/bignumber js-
git-master-df3f1ce1
npm错误!克隆到裸存储库“/Users/dion/.npm/\u git”-
remotes/git https github com碎片bignumber js git主机-
df3f1ce1'。。。
npm错误!远程:未找到存储库。
npm错误!致命:存储库
'https://github.com/debris/bignumber.js.git/”“没有找到
npm错误!
npm错误!
npm错误!如果需要帮助,您可以在以下位置报告此错误:
npm错误!
npm错误!请在任何支持请求中包括以下文件:
npm错误/Users/dion/npm-debug.log

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

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

或者通过https链接手动克隆project change package.json和reference bignumber.js,最后删除.git,然后运行npm安装