我一直在尝试为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(节点“D:\ Program Files(x86)\ nodejs \ node_modules \ npm \ bin \ node-gyp-bin \ .... \ node_modules \ node-gyp \ bin \ node-gyp.js“rebuild”else(node rebuild)一次一个地构建此解决方案中的项目 . 要启用并行构建,请添加“/ 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] gyp ERR!构建错误gyp ERR!堆栈错误:C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ msbuild.exe失败,退出代码:1 gyp ERR!堆栈在ChildProcess.onExit(D:\ Program Files(x86)\ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ build.js:270:23)gyp ERR!堆栈在emitTwo(events.js:87:13)gyp ERR!堆栈在ChildProcess.emit(events.js:172:7)gyp ERR! Process.ChildProcess._handle.onexit(internal / child_process.js:200:12)gyp ERR!系统Windows_NT 6.2.9200 gyp ERR!命令“D:\ Program Files(x86)\ nodejs \ node.exe”“D:\ Program Files(x86)\ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js”“rebuild” gyp ERR! cwd C:\ Users \ Owner \ Desktop \ Test \ node_modules \ irc \ node_modules \ node-icu-charset-detector gyp ERR! node -v v4.2.2 gyp ERR! node-gyp -v v3.0.3 gyp ERR!不行iconv@2.1.11安装C:\ Users \ Owner \ Desktop \ Test \ node_modules \ irc \ node_modules \ iconv node-gyp rebuild