我对这个微软的Node.js的SQL客户端挣扎。
我已经安装了它,而不使用在GitHub的页面导向的任何错误,一切都在本地工作完美。但是当我使用git把车推到蔚蓝,我得到的错误:
I've installed it, without any errors using the guide at the github page, and everything works perfect locally. but when i use git to push it to azure, i get the error:
Native sqlserver module not found. Did you remember to run node-gyp configure build? Application has thrown an uncaught exception and is terminated: Error: Unable to load shared library C:\DWASFiles\Sites\bid110\VirtualDirectory0\site\wwwroot\node_modules\msnodesql\build\Release\sqlserver.node我也看了这引导,即使有些地方已经过时。我还cheked所有文件上传到服务器。在node_modules / msnodesql和node_modules \\ msnodesql \\建立与它的所有子文件夹\\发布\\文件夹有作为。
I've also looked at this guide, even though some parts is outdated. I've also cheked that all the files are uploaded to the server. the node_modules/msnodesql and node_modules\msnodesql\build\Release\ folders with all its subfolders are there as well.
任何想法我可能是错在这里做什么?
Any ideas what I might be doing wrong here?
推荐答案请检查您的msnodesql是x86或x64。如果你的本地计算机是64与64位Python和安装msnodesql通过 NPM安装msnodesql 那么你应该得到一个64位版本。但是在Windows Azure上的网站应用程序将在x86的运行,所以你可能需要msnodesql的x86版。您可以通过NPM从x86机器上安装,或者您也可以在的 www.microsoft/en-us/download/details.aspx?id=29995
Please check if your msnodesql is x86 or x64. If your local machine was x64 with x64 Python, and you installed msnodesql through npm install msnodesql then you should get a x64 version. But on Windows Azure Web Site your application will be running in x86, so you might need to a x86 version of msnodesql. You can install through NPM from a x86 machine, or you can download the compiled version at www.microsoft/en-us/download/details.aspx?id=29995
我也有一个博客帖子这个希望帮助。 blogs.shaunxu.me/archive/2012/09/18/node.js-adventure---when-node.js-meets-windows-azure.aspx
I also have a blog post about this hope that helps. blogs.shaunxu.me/archive/2012/09/18/node.js-adventure---when-node.js-meets-windows-azure.aspx
更多推荐
Node.js的蔚蓝+ sql数据库
发布评论