简体   繁体   English

安装Redis时出现NPM / GYP错误

[英]NPM / gyp error when installing redis

在此处输入图片说明

Full error/warning log: http://pastebin.com/xNjC4FDr 完整的错误/警告日志: http : //pastebin.com/xNjC4FDr

I had problem as well when I tried to install MongoDB, I have made SO question of it but, that was only warnings, so I could ignore it. 当我尝试安装MongoDB时,我也遇到了问题,我对此提出了疑问,但这仅是警告,因此我可以忽略它。 But this time it's not only warnings, but also red error. 但这一次不仅是警告,而且是红色错误。

What do I have to do? 我需要做什么? Is my Nodejs messed up because I've installed Visual Studio Tools for NodeJS in the past? 我的Nodejs是否因为过去安装了Visual Studio Tools for NodeJS而搞砸了? Or is this normal behavior? 还是这是正常现象? What can I do about this, I prefer not to see errors/warnings when I install something on NPM. 我该怎么办,我不希望在NPM上安装某些东西时不会看到错误/警告。

The problem is that hiredis does not support Windows currently. 问题是hiredis当前不支持Windows The link to the Windows-compatible fork in the hiredis readme seems to be outdated (last commit in 8/2013 as of this writing), so you may be out of luck. hiredis自述文件中与Windows兼容的fork的链接似乎已过时(在撰写本文时,最新提交于8/2013),因此您可能不走运。

However hiredis is not required by the redis module, it's an optional dependency that just makes parsing the redis protocol faster than the pure JavaScript parser that is bundled with redis . 但是redis模块不需要hiredis ,它是一个可选的依赖项,它使得解析redis协议的速度比与redis捆绑在一起的纯JavaScript解析器的速度更快。 You may see a similar thing with other modules that have optional dependencies like this. 您可能会在具有可选依赖项的其他模块中看到类似的情况。 Typically if you see the module tree outline at the end of the console output, that means the module installation was successful. 通常,如果您在控制台输出的末尾看到模块树轮廓,则表明模块安装成功。

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

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