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

1

1

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.

Rhyton answered 13/6, 2016 at 3:25 Comment(0)
S
0

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.

Suu answered 28/7, 2016 at 21:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.