在过去的几个小时内,我试图在Windows上运行node-gd
。我尝试了几次回购,最后找到https://github.com/mikesmullin/node-gd。当我运行在窗口上安装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中,但是当我GOOGLE了它,几乎所有的信息是关于php_gd
不是的lib本身。
我应该在哪里放置gd
文件?
编辑:我编译了它!现在我越来越:
检查这个https://github.com/mikesmullin/node-gd/issues/14 – vinayr
@vinayr现在我就在'LINK:致命错误LNK1181:无法打开输入文件 'gd.lib'[ ... \ node_m odules \ node-gd \ build \ node_gd.vcxproj]' – Deepsy
@Deepsy:你有没有找到任何解决方案? – darma