在过去的几个小时里,我试图node-gd
在 Windows 上运行。我尝试了几个 repos,终于找到了https://github.com/mikesmullin/node-gd。当我跑
`npm install node-gd`
我收到以下错误:
node-gyp rebuild
...node_modules\node-gd>node "C:\Program Files\nodejs\node_modules\npm\
bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
node-gd.cpp
..\cpp\node-gd.cpp(17): fatal error C1083: Cannot open include file: 'gd.h': No
such file or directory [...\node_modules\node-gd\build\node_gd.vcxproj
]
我以为我应该安装gd
lib,但是当我用谷歌搜索它时,几乎所有信息php_gd
都不是关于 lib 本身的。
我应该把gd
文件放在哪里?
编辑:我编译它!现在我得到: