节点模块是针对不同的节点模块编译的 67 [英] Node module was compiled against diffferent node module 67

查看:8
本文介绍了节点模块是针对不同的节点模块编译的 67的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在节点模块版本 67 下编译的节点项目,但现在我收到一个错误,它需要节点模块版本 69.

I have a node project that was compiled under node module version 67, but now i am getting an error that it requires node module version 69.

usb_bindings.node was compiled against a different Node.js version using
NODE_MODULE_VERSION 67. This version of Node.js requires
NODE_MODULE_VERSION 69. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).at process.module.(anonymous function) [as dlopen]

有谁知道我该如何解决这个问题?

Does anyone know how i could resolve this issue?

推荐答案

你可能指的是编译node-usb模块,本文展示了如何正确重新编译https://electronjs.org/docs/tutorial/using-native-node-模块

You may be referring to compiling the node-usb module, This article shows how to re-compiling correcly https://electronjs.org/docs/tutorial/using-native-node-modules

cd /path-to-module/
npm install -g node-gyp
node-gyp rebuild --target=1.2.3 --arch=x64 --dist-url=https://electronjs.org/headers
//replace target version with your version of electron

这篇关于节点模块是针对不同的节点模块编译的 67的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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