1.通过网站查询
Node查询网站
https://nodejs.org/dist/index.json
Electron查询网站
https://releases.electronjs.org/releases.json
2.通过Abi方式查询
在VS Code新建js文件
const nodeAbi = require('node-abi')
let a = nodeAbi.getAbi('4.0.2', 'electron')
//let b = nodeAbi.getAbi('8.5.5', 'electron')
let b = nodeAbi.getAbi('9.2.0', 'electron')
//let c = nodeAbi.getTarget('64', 'node')
let c = nodeAbi.getTarget('64', 'node')
let d = nodeAbi.getTarget('82', 'electron')
let e = nodeAbi.getAbi('10.1.7', 'electron')
//let f = nodeAbi.getTarget('82', 'node')
let g = nodeAbi.getAbi('12.16.3', 'node')
let h = nodeAbi.getAbi('11.0.3', 'electron')
let i = nodeAbi.getTarget('88', 'node')
console.log("a:" + a)
console.log("b:" + b)
console.log("c:" + c)
console.log("d:" + d)
console.log("e:" + e)
//console.log("f:" + f)
console.log("g:" + g)
console.log("h:" + h)
console.log("i:" + i)
gyp http GET https://atom.io/download/atom-shell/v11.0.3/node-v11.0.3-headers.tar.gz
node-gyp rebuild --target=11.0.3 --arch=ia32 --dist-url=https://atom.io/download/atom-shell/
node-gyp rebuild --target=11.0.3 --arch=ia32 --dist-url=https://electronjs.org/headers
https://www.electronjs.org/zh/docs/latest/tutorial/electron-timelines
C:\Users\用户名\AppData\Local\node-gyp\Cache
npm install electron@13.2.2
gyp http GET https://electronjs.org/headers/v13.2.2/node-v13.2.2-headers.tar.gz
gyp http 200 https://electronjs.org/headers/v13.2.2/node-v13.2.2-headers.tar.gz
gyp http GET https://electronjs.org/headers/v13.2.2/SHASUMS256.txt
gyp http GET https://electronjs.org/headers/v13.2.2/win-x86/node.lib
gyp http GET https://electronjs.org/headers/v13.2.2/win-arm64/node.lib
gyp http GET https://electronjs.org/headers/v13.2.2/win-x64/node.lib
查看当前的node version
node_version.h