You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am on Fedora Core 41 and had a similar issue. If you look at the details in your error: [email protected] | linux | x64 npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v109-linux-glibc-x64.tar.gz [....]
and check the releases for the canvas module, you may find that there is no release of canvas 2.11.2 for node version 109.
I had a similar message and indeed there was no matching release of canvas 2.11.2 for my version of node. The resolution for me was to go and download a release of canvas and copy it into my node modules directory. (For me, it was in /usr/lib/node_modules/npm/node_modules) After installing canvas manually, I verified canvas module was working. npm view canvas versions
Once verified, I edited the package.json and removed the following line "canvas": "^2.11.2",
after which I re-ran the npm i which completed successfully. I was able to run the server and it appears to be working.
Hi
thank you for your work, however when I tried to install it but I encounter problems :
~/dev/arduino/lv_gui_builder$ npm i npm WARN deprecated [email protected]: This package is no longer supported. npm WARN deprecated [email protected]: This package is no longer supported. npm WARN deprecated [email protected]: This package is no longer supported. npm ERR! code 1 npm ERR! path /home/ola/dev/arduino/lv_gui_builder/node_modules/canvas npm ERR! command failed npm ERR! command sh -c node-pre-gyp install --fallback-to-build --update-binary npm ERR! make: Entering directory '/home/ola/dev/arduino/lv_gui_builder/node_modules/canvas/build' npm ERR! SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node npm ERR! COPY Release/canvas-postbuild.node npm ERR! CXX(target) Release/obj.target/canvas/src/backend/Backend.o npm ERR! CXX(target) Release/obj.target/canvas/src/backend/ImageBackend.o npm ERR! CXX(target) Release/obj.target/canvas/src/backend/PdfBackend.o npm ERR! CXX(target) Release/obj.target/canvas/src/backend/SvgBackend.o npm ERR! CXX(target) Release/obj.target/canvas/src/bmp/BMPParser.o npm ERR! CXX(target) Release/obj.target/canvas/src/Backends.o npm ERR! CXX(target) Release/obj.target/canvas/src/Canvas.o npm ERR! CXX(target) Release/obj.target/canvas/src/CanvasGradient.o npm ERR! CXX(target) Release/obj.target/canvas/src/CanvasPattern.o npm ERR! make: Leaving directory '/home/ola/dev/arduino/lv_gui_builder/node_modules/canvas/build' npm ERR! Failed to execute '/usr/bin/node /usr/share/nodejs/node-gyp/bin/node-gyp.js build --fallback-to-build --update-binary --module=/home/ola/dev/arduino/lv_gui_builder/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/home/ola/dev/arduino/lv_gui_builder/node_modules/canvas/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v109' (1) npm ERR! node-pre-gyp info it worked if it ends with ok npm ERR! node-pre-gyp info using [email protected] npm ERR! node-pre-gyp info using [email protected] | linux | x64 npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v109-linux-glibc-x64.tar.gz [....]
I also can't find .vscode folder in the repo.
Any ideas ?
Kind regards
Ola
The text was updated successfully, but these errors were encountered: