简体   繁体   English

Nodejs使用npm安装hiredis。 遇到错误

[英]Nodejs installing hiredis with npm. Getting error

Hi im trying to install hiredis. 嗨即时试图安装hiredis。 But im getting this error: 但是我得到这个错误:

在此处输入图片说明

Need advise. 需要咨询。

Edit:After installing python im getting different error: 编辑:安装python im后出现不同的错误:

在此处输入图片说明

I got the same Error, and after adding the PYTHON to environment variables I got this: 我遇到了同样的错误,将PYTHON添加到环境变量后,我得到了以下信息:

Error: Python executable "C:\\Python33\\python.exe" is v3.3.3, which is not supported by gyp. 错误:Python可执行文件“ C:\\ Python33 \\ python.exe”为v3.3.3,gyp不支持。

I uninstalled python 3.3.3 and re-installed Python 2.7.6. 我卸载了python 3.3.3,然后重新安装了Python 2.7.6。 and this problem sorted out. 这个问题就解决了。

so I'll just emphasize it on bold here: Install Python version beween 2.6 to 3.0 !!! 因此,我将在此处以粗体强调它:在2.6到3.0之间安装Python版本!

您需要安装python,这是二进制模块构建工具链中必不可少的一部分,hiredis是二进制的。

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

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