node.js - Nodejs 使用 npm 安装hiredis。出现错误

标签 node.js express npm hiredis

嗨,我正在尝试安装hiredis。但我收到此错误:

enter image description here

需要建议。

编辑:安装 python 后,我收到不同的错误:

enter image description here

最佳答案

我遇到了同样的错误,将 PYTHON 添加到环境变量后我得到了这个:

Error: Python executable "C:\Python33\python.exe" is v3.3.3, which is not supported by gyp.

我卸载了 python 3.3.3 并重新安装 Python 2.7.6.这个问题已经解决了。

所以我在这里用粗体强调:安装Python版本在2.6到3.0之间!!!

关于node.js - Nodejs 使用 npm 安装hiredis。出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20033453/

相关文章:

javascript - 为什么 `resolutions` 在与 bower.json 相同的 package.json 中不受支持

javascript - 如何在不使用 req 和 res.locals 的情况下在 NodeJS 中实现 ThreadLocal 变量功能?

mysql - 如何在 node-mysql 查询后获取警告

node.js - 在这种情况下使用 GET 而不是 POST 的原因是什么?

node.js - Express、EJS、测试未定义的挑战

node.js - Firebase 函数找不到模块 'cycle'

node.js - Node JS 需要 ('path' )

javascript - 引用错误 : error is not defined

javascript - 在 Atom Electron 中使用 Express

javascript - Wallet Connect/Web3 Provider 仅通过 imoprting 显示很多错误