修复 Node.js 版本问题“请尝试重新编译或重新安装”

问题描述

我已经尝试擦除我的 node_modules 并重新安装,多次运行 npm rebuild、更改 Node 版本和 npm rebuild my_module_name --update-binary。没有任何效果。

编辑:此软件包以前已安装并可以使用。包链接与 Windows 兼容。它只是在不运行脚本一段时间后停止工作。我尝试按照页面上的说明进行操作,并确保我安装了最新版本的 Microsoft Visual C++ Redistributable。我仍然遇到同样的错误。

Error: The module './././**PATH**\node_modules\@nut-tree\nut-js\node_modules\opencv4nodejs-prebuilt\build\Release\opencv4nodejs.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 79. This version of Node.js requires
NODE_MODULE_VERSION 93. Please try re-compiling or re-installing
the module (for instance,using `npm rebuild` or `npm install`)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)