Node.js的蔚蓝+ sql数据库

编程入门 行业动态 更新时间:2024-10-27 14:33:24
本文介绍了Node.js的蔚蓝+ sql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我对这个微软的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数据库

本文发布于:2023-10-19 00:07:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1505828.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:蔚蓝   数据库   Node   js   sql

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!