在加载c扩展的时候,node 出现找不到该模块的问题,bug 提示:

the special module can not be found

但是该模块的确已经编译好。

通过查找,找到靠谱的定位方法:

Use Dependency Walker and open the compiled .node file, that should show you which dll's are missing (I'm assuming that's the problem).

发现.node 依赖的dll文件有些找不到,将dll路径放在path变量里面,或者拷贝到.node的文件夹下,可以fix it 



环境:

32-bit system

windows 7


参考:https://github.com/LearnBoost/node-canvas/issues/191

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐