【发布时间】:2014-02-28 23:40:02
【问题描述】:
这是我迄今为止在我的 x64 操作系统上所做的:
- 安装 Python (v2.7 -- 特别是 2.7.6) 并将其添加到系统路径 (C:\Python27)
- 已安装 MS VS C++ 2010 Express 版本(我已经安装了 VS 2012 但没有 C++ 组件)
- 为 Windows SDK 7.1 安装了编译器更新
成功执行 node-gyp 配置(从我的附加目录下的 nodejs\node_modules 下 binding.gyp 所在)
运行 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
【问题讨论】:
-
你能把错误的文字贴上去吗?不太清楚阅读
-
@Dalorzo:我最终解决了这个问题!!很快就会在这里发布解决方案。这需要大量工作,并且需要一些时间才能发布详细信息。敬请期待。
-
解决方案是......
-
@Rachael 你的解决方案是什么?
-
@Juntae ,请参阅已接受。
标签: windows-7-x64 node-gyp node-sqlserver