Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install on ubuntu 24.04 #3

Open
olagt opened this issue Dec 19, 2024 · 1 comment
Open

Can't install on ubuntu 24.04 #3

olagt opened this issue Dec 19, 2024 · 1 comment

Comments

@olagt
Copy link

olagt commented Dec 19, 2024

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

@olagt olagt changed the title Can't install ubuntu 24.04 Can't install on ubuntu 24.04 Dec 19, 2024
@flying4fun
Copy link

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.

Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants