美文网首页
Electron NODE_MODULE_VERSION 问题

Electron NODE_MODULE_VERSION 问题

作者: 氕氘氚_笔记 | 来源:发表于2021-06-08 21:53 被阅读0次
    error:: Error: The module '<project>/node_modules/electron/node_modules/ref/build/Release/binding.node'
    was compiled against a different Node.js version using
    NODE_MODULE_VERSION 57. This version of Node.js requires
    NODE_MODULE_VERSION 54. Please try re-compiling or re-installing
    the module (for instance, using `npm rebuild` or`npm install`).
    
    

    解决

    npm  i electron-rebuild --s
    ./node_modules/.bin/electron-rebuild
    
    image.png

    相关文章

      网友评论

          本文标题:Electron NODE_MODULE_VERSION 问题

          本文链接:https://www.haomeiwen.com/subject/irzjeltx.html