我在尝试安装MongoJS时遇到错误。我该如何解决?

时间:2016-01-07 11:50:01

标签: node.js git mongodb express mongojs

所以我在我的电脑上安装了最新版本的nodejs。我正在使用Git。使用Git我将Express安装到我的目录npm install express中。一切都完美无缺。

然后我尝试运行npm install mongojs,但是当我收到此错误时:

Error

我已在C:\mongo\目录中安装了MongoDB的最新版本(3.2)。

有什么问题?当我尝试安装MongoJS时,为什么会出现这些错误?

1 个答案:

答案 0 :(得分:1)

看起来node-gyp不支持python 3,正如您在错误中看到的那样:

gyp ERR! stack Error: Python executable "python" is v3.4.3, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.

他们也在他们的文档中说。

相关问题