在Windows Azure上部署节点/快速应用程序时出错

我目前正在试图在Azure上部署一个Express / Node.js应用程序而没有太多的成功 – 我得到的错误是:

remote: > libxmljs@0.9.0 install D:\home\site\wwwroot\node_modules\libxmljs remote: > node-gyp rebuild remote: remote: remote: D:\home\site\wwwroot\node_modules\libxmljs>node "D:\Program Files (x86)\npm\1.3.11\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild remote: Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. remote: MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [D:\home\site\wwwroot\node_modules\libxmljs\build\binding.sln] remote: gypnpm ERR! weird error 1 remote: Failed exitCode=1, command="D:\Program Files (x86)\nodejs\0.10.21\node.exe" "D:\Program Files (x86)\npm\1.3.11\node_modules\npm\bin\npm-cli.js" install --production remote: An error has occurred during web site deployment. remote: npm 

我认识到Azure实例无法编译libxmljs,因此我已经从.gitignore文件中排除了libxmljs,如下所示:

 !/node_modules/ /node_modules/* !/node_modules/express/ !/node_modules/libxmljs/ .DS_Store ._* 

但是,这仍然没有帮助,我怀疑是因为我正在Mac上编译它,并试图将其上传到Windows机器。 有没有人对我有任何智慧? 谢谢!

你有没有尝试完全删除所有/ node_modules /从.gitignore?

另外,如果您正在使用生成的.gitignore文件,请检查被忽略的实际“express”文件夹。 我不得不从Visual Studio生成的.gitignore中删除,以获得与node.js应用程序和Azure的持续集成。

如果没有.gitignore按摩的工作量,尝试手动FTP到您的所有项目文件到服务器,看看它是否踢。 这将告诉你,如果这是持续集成/ Git的问题,或与实际的应用程序和环境。

编辑:关于Azure fincky node.js部署的主题, 我也遇到了麻烦,由于我的应用程序的目录结构 。