Node.js 构建失败:无法下载 canvas 模块 - 500 响应错误
{"title":"[2023-08-03 19:39:35.110] gyp WARN install got an error, rolling back install\n[2023-08-03 19:39:35.110] gyp ERR! configure error \n[2023-08-03 19:39:35.110] gyp ERR! stack Error: 500 response downloading https://nodejs.org/download/release/v12.14.0/node-v12.14.0-headers.tar.gz\n[2023-08-03 19:39:35.110] gyp ERR! stack     at Request.\n/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --update-binary --module=/workspace/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/workspace/node_modules/canvas/build/Release --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72\n\n\nThe build process attempted to execute this command, but it returned an error code of 1, indicating a failure. As a result, the "compile-front" step failed, and the overall build process was unsuccessful.\n\nThe specific cause of the error could be related to the availability or compatibility of the required files from the nodejs.org website. It's possible that there was a temporary issue with the download server or that the specific version of the module being installed is no longer available.\n\nTo resolve this issue, you may need to investigate the availability of the required files and ensure that they can be downloaded. You could also try updating the version of the "canvas" module or using a different version of Node.js to see if that resolves the problem.
原文地址: https://www.cveoy.top/t/topic/qaE3 著作权归作者所有。请勿转载和采集!