安装依赖 canvas 后,使用 electron-builder 的命令 install-app-deps 会出现
install-app-deps
node-pre-gyp info using [email protected] node-pre-gyp info using [email protected] | win32 | x64 node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp http GET https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-electron-v10.1-win32-unknown-x64.tar.gz node-pre-gyp http 404 https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-electron-v10.1-win32-unknown-x64.tar.gz node-pre-gyp WARN Tried to download(404): https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-electron-v10.1-win32-unknown-x64.tar.gz node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (electron-v10.1 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp http 404 status code downloading tarball https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-electron-v10.1-win32-unknown-x64.tar.gz
yarn add canvas
yarn install-app-deps
可复现 GitHub 仓库
canvas-v2.6.1-electron-v10.1-win32-unknown-x64.tar.gz
1.4m articles
1.4m replys
5 comments
57.0k users