Closed Dosojin1 closed 2 years ago
I think I found the error, why it does not work, but can't figure out how to fix. when I run "npm i canvas" I see that the builder is using node-gyp version 7.1.2
but if I run "node-gyp -v" I get v8.3.0
EDIT found a way to update to v8.3.0
error is still there ...
I am also having a similar issue, my logs are almost identical other than a 404 on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v102-linux-glibc-x64.tar.gz
instead.
In my case it part of a Gitlab Runner execution of building a React app. There's been no change to the pipeline settings since yesterday, when it was working successfully. I assume that the prebuilt binaries are no longer available for some reason.
Me, too
Found a solution to fix my problem
Install all the required tools and configurations using Microsoft's windows-build-tools by running npm install -g windows-build-tools
from an elevated PowerShell (run as Administrator).
Install dependencies and configuration manually
v3.x.x
is not supported), and run npm config set python python2.7
npm config set msvs_version 2019
It will take some time to install Visual Studio Build Tools so be patient.
If it still does not work, I can send you the build canvas folder
Here you go the build version for Node v17.0.1
Error: dlopen(~/metaplex/js/packages/cli/node_modules/canvas/build/Release/canvas.node, 1): no suitable image found.
Still an issue, even on 17.0.1
Yea, me too..
Prebuilds for Windows x64, node-canvas v2.8.0, Node.js v17 are now available.
Sorry to reopen, I'm having issues on ubuntu node 17. When trying to start a discord bot with canvas and canvacord I get the error ode-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v83-linux-glibc-arm64.tar.gz node-pre-gyp WARN Pre-built binaries not installable for canvas@2.8.0 and node@14.18.1 (node-v83 ABI, glibc) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v83-linux-glibc-arm64.tar.gz
@ARR4NN that is a different issue, we don't provide ARM prebuilds. See #1511.
@ARR4NN that is a different issue, we don't provide ARM prebuilds. See #1511.
could I ask why. Im sure it must be requested by many people. Im running my bot in a docker container can I still do that guide?
SOME ONE PLZ HELP ME
THATS THE ERROR
PS E:\NFT\hashlips_art_engine-1.1.2_patch_v1> npm run generate
hashlips_art_engine@1.1.1 generate node index.js
node:internal/modules/cjs/loader:1179 return process.dlopen(module, path.toNamespacedPath(filename)); ^
Error: \?\E:\NFT\hashlips_art_engine-1.1.2_patch_v1\node_modules\canvas\build\Release\canvas.node is not a valid Win32 application.
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1179:18)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.
Hi,
I'm trying to build with node v17.0.1, but I get this error Can somebody help with?