BestGamersH / Multipurpose-Discord-Bot

The bot that has everything! - Leveling • Music • Memes • Moderation • nsfw • Logging • Tickets • Reaction Roles • Fun • Anime • Applications • Much More
MIT License
104 stars 41 forks source link

Bug report #63

Closed Nonstopgaming75 closed 2 months ago

Nonstopgaming75 commented 2 months ago

npm ERR! code 1 npm ERR! path /home/ubuntu/bot/node_modules/canvas npm ERR! command failed npm ERR! command sh -c node-pre-gyp install --fallback-to-build --update-binary npm ERR! Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --update-binary --module=/home/ubuntu/bot/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/home/ubuntu/bot/node_modules/canvas/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108' (1) npm ERR! node-pre-gyp info it worked if it ends with ok npm ERR! node-pre-gyp info using node-pre-gyp@0.4.5 npm ERR! node-pre-gyp info using node@18.20.2 | linux | arm64 npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-glibc-arm64.tar.gz npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-glibc-arm64.tar.gz npm ERR! node-pre-gyp WARN Pre-built binaries not installable for canvas@2.11.2 and node@18.20.2 (node-v108 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.11.2/canvas-v2.11.2-node-v108-linux-glibc-arm64.tar.gz npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@10.0.1 npm ERR! gyp info using node@18.20.2 | linux | arm64 npm ERR! gyp info ok npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@10.0.1 npm ERR! gyp info using node@18.20.2 | linux | arm64 npm ERR! gyp info find Python using Python version 3.10.12 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 '/usr/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/ubuntu/bot/node_modules/canvas/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/root/.cache/node-gyp/18.20.2/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=/root/.cache/node-gyp/18.20.2', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/18.20.2/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/ubuntu/bot/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! Package pangocairo was not found in the pkg-config search path. npm ERR! Perhaps you should add the directory containing pangocairo.pc' npm ERR! to the PKG_CONFIG_PATH environment variable npm ERR! No package 'pangocairo' found npm ERR! gyp: Call to 'pkg-config pangocairo --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error:gyp` failed with exit code: 1 npm ERR! gyp ERR! stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:271:18) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28) npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12) npm ERR! gyp ERR! System Linux 6.5.0-1021-oracle npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--update-binary" "--module=/home/ubuntu/bot/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/home/ubuntu/bot/node_modules/canvas/build/Release" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v108" npm ERR! gyp ERR! cwd /home/ubuntu/bot/node_modules/canvas npm ERR! gyp ERR! node -v v18.20.2 npm ERR! gyp ERR! node-gyp -v v10.0.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 '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --update-binary --module=/home/ubuntu/bot/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/home/ubuntu/bot/node_modules/canvas/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108' (1) npm ERR! node-pre-gyp ERR! stack at ChildProcess. (/home/ubuntu/bot/node_modules/@discordjs/node-pre-gyp/lib/util/compile.js:85:20) npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:517:28) npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1098:16) npm ERR! node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:303:5) npm ERR! node-pre-gyp ERR! System Linux 6.5.0-1021-oracle npm ERR! node-pre-gyp ERR! command "/usr/bin/node" "/home/ubuntu/bot/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--update-binary" npm ERR! node-pre-gyp ERR! cwd /home/ubuntu/bot/node_modules/canvas npm ERR! node-pre-gyp ERR! node -v v18.20.2 npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.4.5 npm ERR! node-pre-gyp ERR! not ok

Nonstopgaming75 commented 2 months ago

npm ERR! code 1 npm ERR! path /home/ubuntu/bot/node_modules/skia-canvas npm ERR! command failed npm ERR! command sh -c node-pre-gyp install || npm run build -- --release npm ERR! response status 403 Forbidden on https://skia-canvas.s3.us-east-1.amazonaws.com/v1.0.1/linux-arm64-napi-v6-glibc.tar.gz npm ERR! npm ERR! > skia-canvas@1.0.1 build npm ERR! > cargo-cp-artifact -nc lib/v6/index.node -- cargo build --message-format=json-render-diagnostics --release npm ERR! node-pre-gyp info it worked if it ends with ok npm ERR! node-pre-gyp info using node-pre-gyp@0.4.5 npm ERR! node-pre-gyp info using node@18.20.2 | linux | arm64 npm ERR! node-pre-gyp info check checked for "/home/ubuntu/bot/node_modules/skia-canvas/lib/v6/index.node" (not found) npm ERR! node-pre-gyp http GET https://skia-canvas.s3.us-east-1.amazonaws.com/v1.0.1/linux-arm64-napi-v6-glibc.tar.gz npm ERR! node-pre-gyp ERR! install response status 403 Forbidden on https://skia-canvas.s3.us-east-1.amazonaws.com/v1.0.1/linux-arm64-napi-v6-glibc.tar.gz npm ERR! node-pre-gyp ERR! install error npm ERR! node-pre-gyp ERR! stack Error: response status 403 Forbidden on https://skia-canvas.s3.us-east-1.amazonaws.com/v1.0.1/linux-arm64-napi-v6-glibc.tar.gz npm ERR! node-pre-gyp ERR! stack at /home/ubuntu/bot/node_modules/@discordjs/node-pre-gyp/lib/install.js:61:11 npm ERR! node-pre-gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5) npm ERR! node-pre-gyp ERR! System Linux 6.5.0-1021-oracle npm ERR! node-pre-gyp ERR! command "/usr/bin/node" "/home/ubuntu/bot/node_modules/.bin/node-pre-gyp" "install" npm ERR! node-pre-gyp ERR! cwd /home/ubuntu/bot/node_modules/skia-canvas npm ERR! node-pre-gyp ERR! node -v v18.20.2 npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.4.5 npm ERR! node-pre-gyp ERR! not ok npm ERR! Error: could not find the cargo executable. npm ERR! npm ERR! You can find instructions for installing Rust and Cargo at: npm ERR! npm ERR! https://www.rust-lang.org/tools/install npm ERR! npm ERR! npm ERR! Did not copy "cdylib:skia-canvas"

npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-05-05T10_18_08_807Z-debug-0.log

Nonstopgaming75 commented 2 months ago

I fixed just use npm i skia-canvas@1.0.0