I try to install a module to interract with Superfeedr's XMPP API in the Node.js. As explained here (https://github.com/superfeedr/superfeedr-node), this is what I do in Node.js:

我尝试安装一个模块来与Node.js中的Superfeedr的XMPP API进行交互。正如这里所解释的那样(https://github.com/superfeedr/superfeedr-node),这就是我在Node.js中所做的:

npm install superfeedr

But I get the following messages in the console:

但是我在控制台中收到以下消息:

// at the beginning it seems ok but then...

C:\Users\Gabrielle\node_modules\superfeedr\node_modules\node-xmpp\node_modules\node-xmpp-core\node_modules\node-stringprep>node 
"C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:101:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:64:11
gyp ERR! stack     at Object.oncomplete (fs.js:107:15)
gyp ERR! System Windows_NT 6.0.6001
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-
gyp.js" "rebuild"
gyp ERR! cwd 

//and much following...

Am I missing something? Why is Python mentioned (I don't use Python at all)?

我错过了什么吗?为什么提到Python(我根本不使用Python)?

1 个解决方案

#1


1

I found the beginning of the solution: I downloaded Python 2.7 in C:\Python27 and then set the PYTHON variable in Node.js by doing:

我找到了解决方案的开头:我在C:\ Python27中下载了Python 2.7,然后通过执行以下操作在Node.js中设置PYTHON变量:

set PYTHON=C:\Python27\Python.exe

(for details see Running Python on Windows for Node.js dependencies)

(有关详细信息,请参阅在Windows上运行Python以获取Node.js依赖项)

and then relaunched:

然后重新启动:

npm install superfeedr

The error "gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable" does not happen anymore. Good!

错误“gyp ERR!stack Error:找不到Python可执行文件”python“,你可以设置PYTHON env变量”不再发生了。好!

But an error message now tells that "Impossible to load the composant VisualC++ "VCBuild.exe"". It asks me: to install development kit Microsoft Windows SDK for Windows Server 2008 and .NET Framework2.0 3.5, or to install Visual Studio 2008. Then I got the message asking me: to install development kit .NET Framework2.0SDK or to install Visual Studio2005. Which is another problem, I guess...

但现在的错误消息告诉“无法加载组合Visual C ++”VCBuild.exe“”。它问我:安装开发工具包Microsoft Windows SDK for Windows Server 2008和.NET Framework 2.0 3.5,或者安装Visual Studio 2008.然后我收到消息问我:安装开发工具包.NET Framework 2.0 SDK或安装Visual Studio 2005.这是另一个问题,我猜......

(see error MSB3411: Could not l oad the Visual C++ component "VCBuild.exe")

(请参阅错误MSB3411:无法使用Visual C ++组件“VCBuild.exe”)

更多相关文章

  1. PHP发布请求未识别的索引错误
  2. AngularJS错误:模块ngAnimate不可用
  3. 键盘出现时,UIWebView滚动。导致点击偏移错误?
  4. 如何使用try,catch在错误处理中打印消息
  5. 关于洗牌算法的错误认识
  6. CORS错误:请求标头字段预检响应中的Access-Control-Allow-Headers
  7. JSON.parse(xhr.responseText)意外的字符串错误
  8. 当尝试安装节点时,会得到一个“DLL”错误。js在Windows 7上
  9. VBA中的错误处理

随机推荐

  1. 安装CentOS
  2. Spring Cloud第六章:配置中心Config
  3. Java代理模式
  4. 2021.1.13
  5. Spring Cloud第七篇:高可用的配置中心
  6. SpringBoot第二十三篇: 异步方法
  7. pub哥的2020文章清单
  8. Spring Cloud第八篇:Spring Cloud Bus刷新
  9. 自学第四十七天
  10. SpringBoot第二十四篇: springboot整合doc