简体   繁体   English

v8::Value::ToString': 没有重载 function 需要 0 arguments

[英]v8::Value::ToString': no overloaded function takes 0 arguments

I've been trying to npm install this node package module here: https://www.npmjs.com/package/node-dll-injector/v/0.2.3我一直在尝试 npm 在此处安装此节点 package 模块: https://www.npmjs.com/package/node-dll-injector./

Which is a bit old but still the code inside is valuable to me.这有点旧,但里面的代码对我来说仍然很有价值。 Every time I try to install it with npm install node-dll-injector ;每次我尝试用npm install node-dll-injector安装它; I get errors.我得到错误。 More specifically within the cpp core file of the package module.更具体地说,在 package 模块的 cpp 核心文件中。

its not building because: v8::Value::ToString': no overloaded function takes 0 arguments The line of code with the issue: String::Utf8Value arg0(info[0]->ToString());它没有构建,因为: v8::Value::ToString': no overloaded function takes 0 arguments有问题的代码行: String::Utf8Value arg0(info[0]->ToString());

I believe it has something to do with outdated node version?我相信这与过时的节点版本有关? I need a solution.我需要一个解决方案。

It's a newer version of engine itself causes those errors.它是新版本的引擎本身会导致这些错误。 No parameter versions of those getters were deprecated and apparently were finally dropped for technical reasons ( see code ), but some online sources still list them as viable.这些 getter 的参数版本没有被弃用,并且显然由于技术原因最终被删除(参见代码),但一些在线资源仍然将它们列为可行的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM