我正在尝试在一个vue电子项目中使用bcrypt-package,但是当我尝试运行它时,出现了一个N-api版本问题: Uncaught Error: The N-API version of thisThis module supports N-API version(s) 3. This Node instance cannot run this module. 我正在运行节点12.16.1。我在documentation上读到了关于N-API的信息,根据版本矩阵,我不可能安装版本1。但是我找不到任何关于如何安装
stack Error: The N-API version of this Node instance is 1. This module supports N-API version(s) 3.not ok
The N-API version of this Node instance is 1. This module supports N-API version(s) 3.
我正在尝试为c++媒体播放器创建一个节点接口。在解码帧时,有一个允许我访问帧数据的事件,我正试图将其导入节点。但我似乎想不出如何使这种功能与中可用的函数一起工作。目前,我的方法是找出一种推送机制,将数据从c++获取到javascript,我所需要的只是初始化javascript中的回调,因为它看起来更优雅。如果失败,我可以在js中创建一个轮询循环来检查是否有新的帧数据,但它似乎效率较低。Fatal error in HandleScope::HandleScope
Ent
我使用这个https://github.com/nodejs/node-addon-api/blob/master/doc/bigint.md文档作为从c++返回bigint的引用,但我得到了以下错误: error: ‘BigInt’ in namespace ‘Napi’ does not name a type#include "bigintexample.h"
st