0

早上好,在我尝试做一个“node app.js”之后,它是一个客户端,这是 promt 向我展示的错误。

C:\Users\foschinil\Desktop\MACCHINA TORNIO\ServerComunicazioneProduzione> node app.js
C:\Users\foschinil\Desktop\MACCHINA TORNIO\ServerComunicazioneProduzione\node_modules\bindings\bindings.js:91
        throw e
        ^

Error: The module '\\?\C:\Users\foschinil\Desktop\MACCHINA TORNIO\ServerComunicazioneProduzione\node_modules\libxmljs\build\Release\xmljs.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. 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`).
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1183:18)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at bindings (C:\Users\foschinil\Desktop\MACCHINA TORNIO\ServerComunicazioneProduzione\node_modules\bindings\bindings.js:84:48)
    at Object.<anonymous> (C:\Users\foschinil\Desktop\MACCHINA TORNIO\ServerComunicazioneProduzione\node_modules\libxmljs\lib\bindings.js:1:37)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32) {
  code: 'ERR_DLOPEN_FAILED'
}

有人知道如何解决吗?我尝试了一切:

  • npm 重建
  • npm 安装

当我尝试安装 libxmljs 时出现很多错误

4

0 回答 0