node-gyp编译错误c2240无法从'v8 :: Value *'转换为'v8:object * volatile' [英] node-gyp compile error c2240 cannot convert from 'v8::Value *' to 'v8:object *volatile'

查看:2541
本文介绍了node-gyp编译错误c2240无法从'v8 :: Value *'转换为'v8:object * volatile'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

2440错误点到.node-gyp\4.4.5\include\\\
ode\v8.h(221),所以我不知道发生了什么问题。

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.

ps在Windows机器上编译。

p.s. compiled on a windows machine.

有什么方法来确定哪个句子导致这个错误,这是我第一次使用node-gyp,感谢。 >

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

推荐答案

同样的问题。很可能是因为我们使用较新的nodejs v4.4.5版本,它不能再在Visual Studio 2012/2013中使用C ++ Build Tools。 (其他人可以澄清这一点。)

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?)

您可以在Visual Studio 2015中尝试C ++ Build Tools,但是在编译之前运行:

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

npm -g install npm@next

请参阅此处 https://github.com/nodejs/node-gyp/issues/972
修复 win_delay_load_hook.c(34):错误C2373:'__pfnDliNotifyHook2'如果您运行2015年。

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.

这篇关于node-gyp编译错误c2240无法从'v8 :: Value *'转换为'v8:object * volatile'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆