这是我到目前为止在x64操作系统上所做的事情:
成功执行了node-gyp configure(来自我在node.spp所在的nodejs \node_modules下的附加目录)
运行node-gyp build(作为管理员)**这是崩溃的原因,让我:
这个错误:
C:\Program Files\nodejs\node_modules\msnodesql>node-gyp build
gyp info it worked if it ends with ok
gyp info using node-gyp@0.12.2
gyp info using node@0.10.25 | win32 | x64
gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. …Run Code Online (Sandbox Code Playgroud) 我无法安装msnodesql.
本来我试过
npm install node-sqlserver
Run Code Online (Sandbox Code Playgroud)
...并且这警告它已被msnodesql取代.
我成功安装了Node.js,iisnode,我看到样本Hello.js正在服务(yayee,很棒),所以至少node和iisnode正在工作.
我安装了先决条件:
Node.js - use the latest version if possible, but it has been tested on node 0.6.10 and later
node-gyp - latest version installed globally (npm install -g node-gyp)
python 2.7.x - for node-gyp (make sure it is in the path)
Visual C++ 2010 - the Express edition is freely available from Microsoft
SQL Server Native Client 11.0 - available as Microsoft SQL Server 2012 Native Client found in the SQL Server 2012 …Run Code Online (Sandbox Code Playgroud)