在過去的幾個小時內,我試圖在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