我一直在尝试为 Node.Js 安装 node-irc 库。
我似乎遇到了这个问题,不知道为什么。我安装了 Node.JS(版本 4.22)的新副本,我在 Windows 上安装了 .NET Framework 2.0 SDK 和 Python 2.7.10
这是错误:
C:\Users\Owner\Desktop\Test\node_modules\irc\node_modules\node-icu-charset-detector>如果未定义 npm_config_node_gyp (node "D:\Program Files (x86)\nodejs\node_modules\npm\bin\node -gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" 重建)否则(节点重建)
一次在此解决方案中构建项目。要启用并行构建,请添加“/m”开关。
d:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.c(13):致命错误 C1083:无法打开包含文件:'windows.h':没有这样的文件或目录
[C:\Users\Owner\Desktop\Test\node_modules\irc\node_modules\node-icu-charset-detector\build\binding.sln]
吉普错误!构建错误
吉普错误!堆栈错误:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
退出代码失败:1吉普错误!ChildProcess.onExit 处的堆栈(D:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
吉普错误!堆栈在 emitTwo (events.js:87:13)
吉普错误!ChildProcess.emit (events.js:172:7) 的堆栈
吉普错误!堆栈在 Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
吉普错误!系统 Windows_NT 6.2.9200
吉普错误!命令 "D:\Program Files (x86)\nodejs\node.exe" "D:\Program Files(x86)\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "重建"
吉普错误!cwd C:\Users\Owner\Desktop\Test\node_modules\irc\node_modules\node-icu-charset-detector
吉普错误!节点-v v4.2.2
吉普错误!节点gyp -v v3.0.3
吉普错误!不好
iconv@2.1.11 安装 C:\Users\Owner\Desktop\Test\node_modules\irc\node_modules\ iconv node-gyp 重建