{"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. (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:187:14)\n[2023-08-03 19:39:35.110] gyp ERR! stack at Request.emit (events.js:215:7)\n[2023-08-03 19:39:35.110] gyp ERR! stack at Request.onRequestResponse (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1066:10)\n[2023-08-03 19:39:35.110] gyp ERR! stack at ClientRequest.emit (events.js:210:5)\n[2023-08-03 19:39:35.110] gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:583:27)\n[2023-08-03 19:39:35.110] gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:115:17)\n[2023-08-03 19:39:35.110] gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:456:22)\n[2023-08-03 19:39:35.110] gyp ERR! stack at TLSSocket.emit (events.js:210:5)\n[2023-08-03 19:39:35.110] gyp ERR! stack at addChunk (_stream_readable.js:309:12)\n[2023-08-03 19:39:35.110] gyp ERR! stack at readableAddChunk (_stream_readable.js:290:11)\n[2023-08-03 19:39:35.110] gyp ERR! System Linux 4.19.91-27.3.al7.x86_64\n[2023-08-03 19:39:35.110] gyp ERR! command "/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[2023-08-03 19:39:35.110] gyp ERR! cwd /workspace/node_modules/canvas\n[2023-08-03 19:39:35.110] gyp ERR! node -v v12.14.0\n[2023-08-03 19:39:35.110] gyp ERR! node-gyp -v v5.0.5\n[2023-08-03 19:39:35.110] gyp ERR! not ok \n[2023-08-03 19:39:35.110] node-pre-gyp ERR! build error \n[2023-08-03 19:39:35.110] node-pre-gyp ERR! stack Error: Failed to execute '/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' (1)\n[2023-08-03 19:39:35.110] node-pre-gyp ERR! stack at ChildProcess. (/workspace/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)\n[2023-08-03 19:39:35.110] node-pre-gyp ERR! stack at ChildProcess.emit (events.js:210:5)\n[2023-08-03 19:39:35.110] node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)\n[2023-08-03 19:39:35.110] node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)\n[2023-08-03 19:39:35.110] node-pre-gyp ERR! System Linux 4.19.91-27.3.al7.x86_64\n[2023-08-03 19:39:35.110] node-pre-gyp ERR! command "/usr/local/bin/node" "/workspace/node_modules/canvas/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--update-binary"\n[2023-08-03 19:39:35.110] node-pre-gyp ERR! cwd /workspace/node_modules/canvas\n[2023-08-03 19:39:35.110] node-pre-gyp ERR! node -v v12.14.0\n[2023-08-03 19:39:35.110] node-pre-gyp ERR! node-pre-gyp -v v1.0.10\n[2023-08-03 19:39:35.110] node-pre-gyp ERR! not ok \n[2023-08-03 19:39:35.110] Failed to execute '/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' (1)\n## [2023-08-03 19:39:41.141] 步骤 compile-front 执行结束,耗时 28 秒 \n\n构建失败!状态:Error[{"key":"StartedAt","value":"2023-08-03T11:39:07.815Z","type":"InternalTektonResult"}]内容:The build encountered an error during the "compile-front" step. Specifically, there was an issue with the installation of a module called "canvas". The error message suggests that there was a problem downloading the necessary files from the nodejs.org website.\n\nThe error occurred while trying to configure the module using node-gyp. The specific command that failed was:\n\n\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.

Node.js 构建失败:无法下载 canvas 模块 - 500 响应错误

原文地址: https://www.cveoy.top/t/topic/qaE3 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录