部分报错:
better_sqlite3.node’ was compiled against a different Node.js version using
NODE_MODULE_VERSION 83. This version of Node.js requires
NODE_MODULE_VERSION 93. Please try re-compiling or re-installing
原因是electron用的node版本和你电脑的node版本不一致导致的,可是查看了eletron的abiversion后对应下载了node还是解决不了,最后通过rebuild解决
然后搜寻到别人的解决方案是根据指定版本:
npm rebuild --runtime=electron --disturl=https://atom.io/download/atom-shell --target=13.6.3 --abi=89
可是我安装了python后还是不行,最后放弃这个做法
于是找到下面做法解决,从上到下执行步骤
npm install --save-dev electron-rebuild //项目开发环境依赖加入electron-rebuild
npm uninstall deasync //删除deasync
npm install deasync //重新加载
./node_modules/.bin/electron-rebuild //执行electron-rebuild