繁体   English   中英

TESTRPC从npm Node.js安装ERR

[英]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使用的依赖项之一。 更精确地说,我认为发生的事情是开发人员通过克隆ssh链接而不是https来添加它,所以这可能是一个分叉版本。

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM