Finalement j’ai fait un nouveau dossier pour reprendre sur la branche node
Voici ce que ça donne dans le terminal suite à npm install
julien@CM57-DEL12:~/dodocgit/dodoc10elec$ npm install
> dodoc@10.0.0-dev postinstall
> electron-builder install-app-deps
• electron-builder version=23.6.0
• loaded configuration file=package.json ("build" field)
• rebuilding native dependencies dependencies=canvas@2.10.1, platform-folders@0.6.0, sharp@0.31.1 platform=linux arch=x64
• install prebuilt binary name=sharp version=0.31.1 platform=linux arch=x64 napi=
⨯ cannot execute cause=exit status 1
errorOut=npm ERR! code 1
npm ERR! path /home/julien/dodocgit/dodoc10elec/node_modules/canvas
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build --update-binary
npm ERR! make : on entre dans le répertoire « /home/julien/dodocgit/dodoc10elec/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 : on quitte le répertoire « /home/julien/dodocgit/dodoc10elec/node_modules/canvas/build »
npm ERR! Failed to execute '/home/julien/.nvm/versions/node/v16.14.2/bin/node /home/julien/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --update-binary --module=/home/julien/dodocgit/dodoc10elec/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/home/julien/dodocgit/dodoc10elec/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v19.0' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@1.0.9
npm ERR! node-pre-gyp info using node@16.14.2 | linux | x64
npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.10.1/canvas-v2.10.1-electron-v19.0-linux-glibc-x64.tar.gz
npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.10.1/canvas-v2.10.1-electron-v19.0-linux-glibc-x64.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for canvas@2.10.1 and electron@19.0.4 (electron-v19.0 ABI, glibc) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.10.1/canvas-v2.10.1-electron-v19.0-linux-glibc-x64.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.4.1
npm ERR! gyp info using node@16.14.2 | linux | x64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.4.1
npm ERR! gyp info using node@16.14.2 | linux | x64
npm ERR! gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/home/julien/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/julien/dodocgit/dodoc10elec/node_modules/canvas/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/julien/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/julien/.electron-gyp/19.0.4/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/home/julien/.electron-gyp/19.0.4',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/julien/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/julien/.electron-gyp/19.0.4/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/julien/dodocgit/dodoc10elec/node_modules/canvas',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.4.1
npm ERR! gyp info using node@16.14.2 | linux | x64
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../src/backend/Backend.h:6,
npm ERR! from ../src/backend/Backend.cc:1:
npm ERR! ../../nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:
npm ERR! ../../nan/nan.h:2556:3: warning: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::Local<v8::AccessorSignature>, v8::SideEffectType, v8::SideEffectType)’ is deprecated: Do signature check in accessor [-Wdeprecated-declarations]
npm ERR! 2556 | );
npm ERR! | ^
npm ERR! In file included from /home/julien/.electron-gyp/19.0.4/include/node/v8-function.h:15,
npm ERR! from /home/julien/.electron-gyp/19.0.4/include/node/v8.h:33,
npm ERR! from /home/julien/.electron-gyp/19.0.4/include/node/node.h:63,
npm ERR! from ../../nan/nan.h:60,
npm ERR! from ../src/backend/Backend.h:6,
npm ERR! from ../src/backend/Backend.cc:1:
npm ERR! /home/julien/.electron-gyp/19.0.4/include/node/v8-template.h:838:8: note: declared here
npm ERR! 838 | void SetAccessor(
npm ERR! | ^~~~~~~~~~~
npm ERR! In file included from ../src/backend/Backend.h:6,
npm ERR! from ../src/backend/ImageBackend.h:3,
npm ERR! from ../src/backend/ImageBackend.cc:1:
npm ERR! ../../nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:
npm ERR! ../../nan/nan.h:2556:3: warning: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::Local<v8::AccessorSignature>, v8::SideEffectType, v8::SideEffectType)’ is deprecated: Do signature check in accessor [-Wdeprecated-declarations]
npm ERR! 2556 | );
npm ERR! | ^
npm ERR! In file included from /home/julien/.electron-gyp/19.0.4/include/node/v8-function.h:15,
npm ERR! from /home/julien/.electron-gyp/19.0.4/include/node/v8.h:33,
npm ERR! from /home/julien/.electron-gyp/19.0.4/include/node/node.h:63,
npm ERR! from ../../nan/nan.h:60,
npm ERR! from ../src/backend/Backend.h:6,
npm ERR! from ../src/backend/ImageBackend.h:3,
npm ERR! from ../src/backend/ImageBackend.cc:1:
npm ERR! /home/julien/.electron-gyp/19.0.4/include/node/v8-template.h:838:8: note: declared here
npm ERR! 838 | void SetAccessor(
npm ERR! | ^~~~~~~~~~~
npm ERR! In file included from ../src/backend/Backend.h:6,
npm ERR! from ../src/backend/PdfBackend.h:3,
npm ERR! from ../src/backend/PdfBackend.cc:1:
npm ERR! ../../nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:
npm ERR! ../../nan/nan.h:2556:3: warning: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::Local<v8::AccessorSignature>, v8::SideEffectType, v8::SideEffectType)’ is deprecated: Do signature check in accessor [-Wdeprecated-declarations]
npm ERR! 2556 | );
npm ERR! | ^
npm ERR! In file included from /home/julien/.electron-gyp/19.0.4/include/node/v8-function.h:15,
npm ERR! from /home/julien/.electron-gyp/19.0.4/include/node/v8.h:33,
npm ERR! from /home/julien/.electron-gyp/19.0.4/include/node/node.h:63,
npm ERR! from ../../nan/nan.h:60,
npm ERR! from ../src/backend/Backend.h:6,
npm ERR! from ../src/backend/PdfBackend.h:3,
npm ERR! from ../src/backend/PdfBackend.cc:1:
npm ERR! /home/julien/.electron-gyp/19.0.4/include/node/v8-template.h:838:8: note: declared here
npm ERR! 838 | void SetAccessor(
npm ERR! | ^~~~~~~~~~~
npm ERR! In file included from ../src/backend/Backend.h:6,
npm ERR! from ../src/backend/SvgBackend.h:3,
npm ERR! from ../src/backend/SvgBackend.cc:1:
npm ERR! ../../nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:
npm ERR! ../../nan/nan.h:2556:3: warning: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::Local<v8::AccessorSignature>, v8::SideEffectType, v8::SideEffectType)’ is deprecated: Do signature check in accessor [-Wdeprecated-declarations]
npm ERR! 2556 | );
npm ERR! | ^
npm ERR! In file included from /home/julien/.electron-gyp/19.0.4/include/node/v8-function.h:15,
npm ERR! from /home/julien/.electron-gyp/19.0.4/include/node/v8.h:33,
npm ERR! from /home/julien/.electron-gyp/19.0.4/include/node/node.h:63,
npm ERR! from ../../nan/nan.h:60,
npm ERR! from ../src/backend/Backend.h:6,
npm ERR! from ../src/backend/SvgBackend.h:3,
npm ERR! from ../src/backend/SvgBackend.cc:1:
npm ERR! /home/julien/.electron-gyp/19.0.4/include/node/v8-template.h:838:8: note: declared here
npm ERR! 838 | void SetAccessor(
npm ERR! | ^~~~~~~~~~~
npm ERR! In file included from ../src/backend/Backend.h:6,
npm ERR! from ../src/Backends.h:3,
npm ERR! from ../src/Backends.cc:1:
npm ERR! ../../nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:
npm ERR! ../../nan/nan.h:2556:3: warning: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::Local<v8::AccessorSignature>, v8::SideEffectType, v8::SideEffectType)’ is deprecated: Do signature check in accessor [-Wdeprecated-declarations]
npm ERR! 2556 | );
npm ERR! | ^
npm ERR! In file included from /home/julien/.electron-gyp/19.0.4/include/node/v8-function.h:15,
npm ERR! from /home/julien/.electron-gyp/19.0.4/include/node/v8.h:33,
npm ERR! from /home/julien/.electron-gyp/19.0.4/include/node/node.h:63,
npm ERR! from ../../nan/nan.h:60,
npm ERR! from ../src/backend/Backend.h:6,
npm ERR! from ../src/Backends.h:3,
npm ERR! from ../src/Backends.cc:1:
npm ERR! /home/julien/.electron-gyp/19.0.4/include/node/v8-template.h:838:8: note: declared here
npm ERR! 838 | void SetAccessor(
npm ERR! | ^~~~~~~~~~~
npm ERR! In file included from ../src/backend/Backend.h:6,
npm ERR! from ../src/Canvas.h:5,
npm ERR! from ../src/Canvas.cc:3:
npm ERR! ../../nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:
npm ERR! ../../nan/nan.h:2556:3: warning: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::Local<v8::AccessorSignature>, v8::SideEffectType, v8::SideEffectType)’ is deprecated: Do signature check in accessor [-Wdeprecated-declarations]
npm ERR! 2556 | );
npm ERR! | ^
npm ERR! In file included from /home/julien/.electron-gyp/19.0.4/include/node/v8-function.h:15,
npm ERR! from /home/julien/.electron-gyp/19.0.4/include/node/v8.h:33,
npm ERR! from /home/julien/.electron-gyp/19.0.4/include/node/node.h:63,
npm ERR! from ../../nan/nan.h:60,
npm ERR! from ../src/backend/Backend.h:6,
npm ERR! from ../src/Canvas.h:5,
npm ERR! from ../src/Canvas.cc:3:
npm ERR! /home/julien/.electron-gyp/19.0.4/include/node/v8-template.h:838:8: note: declared here
npm ERR! 838 | void SetAccessor(
npm ERR! | ^~~~~~~~~~~
npm ERR! In file included from ../src/CanvasGradient.h:5,
npm ERR! from ../src/CanvasGradient.cc:3:
npm ERR! ../../nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:
npm ERR! ../../nan/nan.h:2556:3: warning: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::Local<v8::AccessorSignature>, v8::SideEffectType, v8::SideEffectType)’ is deprecated: Do signature check in accessor [-Wdeprecated-declarations]
npm ERR! 2556 | );
npm ERR! | ^
npm ERR! In file included from /home/julien/.electron-gyp/19.0.4/include/node/v8-function.h:15,
npm ERR! from /home/julien/.electron-gyp/19.0.4/include/node/v8.h:33,
npm ERR! from /home/julien/.electron-gyp/19.0.4/include/node/node.h:63,
npm ERR! from ../../nan/nan.h:60,
npm ERR! from ../src/CanvasGradient.h:5,
npm ERR! from ../src/CanvasGradient.cc:3:
npm ERR! /home/julien/.electron-gyp/19.0.4/include/node/v8-template.h:838:8: note: declared here
npm ERR! 838 | void SetAccessor(
npm ERR! | ^~~~~~~~~~~
npm ERR! In file included from ../src/CanvasPattern.cc:6:
npm ERR! ../src/Image.h:18:10: fatal error: gif_lib.h: Aucun fichier ou dossier de ce type
npm ERR! 18 | #include <gif_lib.h>
npm ERR! | ^~~~~~~~~~~
npm ERR! compilation terminated.
npm ERR! make: *** [canvas.target.mk:162 : Release/obj.target/canvas/src/CanvasPattern.o] Erreur 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/home/julien/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:526:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Linux 5.15.0-60-generic
npm ERR! gyp ERR! command "/home/julien/.nvm/versions/node/v16.14.2/bin/node" "/home/julien/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--update-binary" "--module=/home/julien/dodocgit/dodoc10elec/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/home/julien/dodocgit/dodoc10elec/node_modules/canvas/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=electron-v19.0"
npm ERR! gyp ERR! cwd /home/julien/dodocgit/dodoc10elec/node_modules/canvas
npm ERR! gyp ERR! node -v v16.14.2
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/home/julien/.nvm/versions/node/v16.14.2/bin/node /home/julien/.nvm/versions/node/v16.14.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --update-binary --module=/home/julien/dodocgit/dodoc10elec/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/home/julien/dodocgit/dodoc10elec/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v19.0' (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/julien/dodocgit/dodoc10elec/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:526:28)
npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm ERR! node-pre-gyp ERR! System Linux 5.15.0-60-generic
npm ERR! node-pre-gyp ERR! command "/home/julien/.nvm/versions/node/v16.14.2/bin/node" "/home/julien/dodocgit/dodoc10elec/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--update-binary"
npm ERR! node-pre-gyp ERR! cwd /home/julien/dodocgit/dodoc10elec/node_modules/canvas
npm ERR! node-pre-gyp ERR! node -v v16.14.2
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.9
npm ERR! node-pre-gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /home/julien/.npm/_logs/2023-02-16T21_42_27_275Z-debug-0.log
command=/home/julien/.nvm/versions/node/v16.14.2/bin/node /home/julien/.nvm/versions/node/v16.14.2/lib/node_modules/npm/bin/npm-cli.js rebuild canvas@2.10.1 platform-folders@0.6.0
workingDir=
npm ERR! code 1
npm ERR! path /home/julien/dodocgit/dodoc10elec
npm ERR! command failed
npm ERR! command sh -c electron-builder install-app-deps
npm ERR! A complete log of this run can be found in:
npm ERR! /home/julien/.npm/_logs/2023-02-16T21_42_12_407Z-debug-0.log
julien@CM57-DEL12:~/dodocgit/dodoc10elec$