到目前为止,这是我在x64操作系统上所做的事情:
- 安装了Python(v2.7-特定于2.7.6),并将其添加到系统路径(C:\ Python27)
- 已安装MS VS C ++ 2010 Express版本(我已经安装了VS 2012,但没有C ++组件)
- 安装了Windows SDK 7.1的编译器更新
成功执行node-gyp配置(从我的附加目录(位于binding.gyp所在的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. To enable parallel build, please add the "/m" switch.
LINK:致命错误LNK1181:无法打开输入文件'kernel32.lib'[C:\ Program Files \ nodejs \ node_modules \ msnodesql \ build \ sqlserver.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\RNelson\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Users\\RNelson\\AppData\\Roaming\\npm\\node_modules\\node- gyp\\bin\\node-gyp.js" "build"
gyp ERR! cwd C:\Program Files\nodejs\node_modules\msnodesql
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
有什么想法吗?提前致谢!只是尝试将我的node-sqlserver MS驱动程序用于Node.js