我一直在尝试为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> if not defined 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" 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&# 39;:没有这样的文件或目录
[C:\用户\用户\桌面\测试\ node_modules \ IRC \ node_modules \节点ICU-字符集探测器\构建\ binding.sln]
gyp ERR!构建错误
gyp ERR!堆栈错误:
退出代码
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
失败:1gyp 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" "重建"
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