node-gyp compile error c2240 cannot convert from 'v8::Value *' to 'v8:object *volatile'

时光怂恿深爱的人放手 提交于 2020-05-09 07:03:39

问题


The 2440 error point into the ".node-gyp\4.4.5\include\node\v8.h(221)", so I have no idea what's goes wrong.

p.s. compiled on a windows machine.

Is there any way to figure out which sentence is causing this error, it's my first time to use node-gyp, thanks.


回答1:


Same issue here. Most probably because we use newer nodejs v4.4.5 version and it can no longer work with C++ Build Tools in Visual Studio 2012/2013. (someone else can clarify this?)

You can try C++ Build Tools in Visual Studio 2015 but run this before you compile:

npm -g install npm@next

Refer to here https://github.com/nodejs/node-gyp/issues/972 to fix win_delay_load_hook.c(34): error C2373: '__pfnDliNotifyHook2' if you run with 2015.



来源:https://stackoverflow.com/questions/37781396/node-gyp-compile-error-c2240-cannot-convert-from-v8value-to-v8object-vo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!