HashLips / hashlips_art_engine

HashLips Art Engine is a tool used to create multiple different instances of artworks based on provided layers.
MIT License
7.15k stars 4.3k forks source link

trying to run yarn install #397

Open illfio opened 2 years ago

illfio commented 2 years ago

so about every tutorial i've followed, this problem has occurred. either it be from cd > js or the just like the tutorial said, from

cd metaplex/js/packages/cli

I run yarn install and this pops up,

error /Users/sc/solana-mint/metaplex/js/node_modules/canvas: Command failed. Exit code: 1 Command: node-pre-gyp install --fallback-to-build Arguments: Directory: /Users/sc/solana-mint/metaplex/js/node_modules/canvas Output: node-pre-gyp info it worked if it ends with ok node-pre-gyp info using node-pre-gyp@1.0.7 node-pre-gyp info using node@16.13.1 | darwin | arm64 node-pre-gyp info check checked for "/Users/sc/solana-mint/metaplex/js/node_modules/canvas/build/Release/canvas.node" (not found) node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v93-darwin-unknown-arm64.tar.gz node-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-v93-darwin-unknown-arm64.tar.gz node-pre-gyp WARN Pre-built binaries not installable for canvas@2.8.0 and node@16.13.1 (node-v93 ABI, unknown) (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-v93-darwin-unknown-arm64.tar.gz gyp info it worked if it ends with ok gyp info using node-gyp@5.1.1 gyp info using node@16.13.1 | darwin | arm64 gyp info ok gyp info it worked if it ends with ok gyp info using node-gyp@5.1.1 gyp info using node@16.13.1 | darwin | arm64 gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python" (node:62311) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only. (Use node --trace-deprecation ... to show where the warning was created) gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python gyp info spawn args [ gyp info spawn args '/Users/sc/solana-mint/metaplex/js/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/Users/sc/solana-mint/metaplex/js/node_modules/canvas/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/Users/sc/solana-mint/metaplex/js/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/Users/sc/Library/Caches/node-gyp/16.13.1/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/Users/sc/Library/Caches/node-gyp/16.13.1', gyp info spawn args '-Dnode_gyp_dir=/Users/sc/solana-mint/metaplex/js/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/Users/sc/Library/Caches/node-gyp/16.13.1/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/Users/sc/solana-mint/metaplex/js/node_modules/canvas', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] /bin/sh: pkg-config: command not found gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 127 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/Users/sc/solana-mint/metaplex/js/node_modules/node-gyp/lib/configure.js:351:16) gyp ERR! stack at ChildProcess.emit (node:events:390:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) gyp ERR! System Darwin 20.3.0 gyp ERR! command "/usr/local/bin/node" "/Users/sc/solana-mint/metaplex/js/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/sc/solana-mint/metaplex/js/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/Users/sc/solana-mint/metaplex/js/node_modules/canvas/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93" gyp ERR! cwd /Users/sc/solana-mint/metaplex/js/node_modules/canvas gyp ERR! node -v v16.13.1 gyp ERR! node-gyp -v v5.1.1 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /Users/sc/solana-mint/metaplex/js/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/sc/solana-mint/metaplex/js/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/sc/solana-mint/metaplex/js/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1) node-pre-gyp ERR! stack at ChildProcess. (/Users/sc/solana-mint/metaplex/js/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23) node-pre-gyp ERR! stack at ChildProcess.emit (node:events:390:28) node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1064:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) node-pre-gyp ERR! System Darwin 20.3.0 node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/sc/solana-mint/metaplex/js/node_modules/canvas/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /Users/sc/solana-mint/metaplex/js/node_modules/canvas node-pre-gyp ERR! node -v v16.13.1 node-pre-gyp ERR! node-pre-gyp -v v1.0.7 node-pre-gyp ERR! not ok

i've tried everything from trying to download this https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v93-darwin-unknown-arm64.tar.gz as suggested from the error, i tried to run yarn install in js nothing.

fazofazaal commented 2 years ago

Looks like using an Apple M1 device. I have faced similar issues when trying to install on my M1 Macbook Air and saw another person on discord having the same issue. Thing is the README specifies that the project requires node 10 to be set to default for it to work properly. You can see there that you are using node 16 instead. I did install and set node version to 14 but the npm installation failed and then upon googling a bit I found out that only node 15 and above support the M1 chips.

illfio commented 2 years ago

Looks like using an Apple M1 device. I have faced similar issues when trying to install on my M1 Macbook Air and saw another person on discord having the same issue. Thing is the README specifies that the project requires node 10 to be set to default for it to work properly. You can see there that you are using node 16 instead. I did install and set node version to 14 but the npm installation failed and then upon googling a bit I found out that only node 15 and above support the M1 chips.

so you haven't been able to find a solution to this either?

mxna commented 2 years ago

I am experiencing the same issue on MacBook Air (M1, 2020) running MacOS 12.1. Haven't found a solution yet.

mc@mcs-Air hashlips_art_engine-main % npm install
npm WARN old lockfile npm WARN old lockfile The package-lock.json file was created with an old version of npm, npm WARN old lockfile so supplemental metadata must be fetched from the registry. npm WARN old lockfile npm WARN old lockfile This is a one-time fix-up, please be patient... npm WARN old lockfile npm ERR! code 1 npm ERR! path /Users/mc/Documents/hashlips_art_engine-main/node_modules/canvas npm ERR! command failed npm ERR! command sh -c node-pre-gyp install --fallback-to-build npm ERR! Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/mc/Documents/hashlips_art_engine-main/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/mc/Documents/hashlips_art_engine-main/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (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.6 npm ERR! node-pre-gyp info using node@16.13.1 | darwin | arm64 npm ERR! node-pre-gyp info check checked for "/Users/mc/Documents/hashlips_art_engine-main/node_modules/canvas/build/Release/canvas.node" (not found) npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v93-darwin-unknown-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.8.0/canvas-v2.8.0-node-v93-darwin-unknown-arm64.tar.gz npm ERR! node-pre-gyp WARN Pre-built binaries not installable for canvas@2.8.0 and node@16.13.1 (node-v93 ABI, unknown) (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.8.0/canvas-v2.8.0-node-v93-darwin-unknown-arm64.tar.gz npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.3.0 npm ERR! gyp info using node@16.13.1 | darwin | arm64 npm ERR! gyp info ok npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.3.0 npm ERR! gyp info using node@16.13.1 | darwin | arm64 npm ERR! gyp info find Python using Python version 3.8.9 found at "/Library/Developer/CommandLineTools/usr/bin/python3" npm ERR! gyp info spawn /Library/Developer/CommandLineTools/usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/local/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 '/Users/mc/Documents/hashlips_art_engine-main/node_modules/canvas/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/mc/Library/Caches/node-gyp/16.13.1/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=/Users/mc/Library/Caches/node-gyp/16.13.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/mc/Library/Caches/node-gyp/16.13.1/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/mc/Documents/hashlips_art_engine-main/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! /bin/sh: pkg-config: command not found npm ERR! gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 127 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.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:261:16) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) npm ERR! gyp ERR! System Darwin 21.2.0 npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/mc/Documents/hashlips_art_engine-main/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/Users/mc/Documents/hashlips_art_engine-main/node_modules/canvas/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93" npm ERR! gyp ERR! cwd /Users/mc/Documents/hashlips_art_engine-main/node_modules/canvas npm ERR! gyp ERR! node -v v16.13.1 npm ERR! gyp ERR! node-gyp -v v8.3.0 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/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/mc/Documents/hashlips_art_engine-main/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/mc/Documents/hashlips_art_engine-main/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1) npm ERR! node-pre-gyp ERR! stack at ChildProcess. (/Users/mc/Documents/hashlips_art_engine-main/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23) npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:390:28) npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1064:16) npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) npm ERR! node-pre-gyp ERR! System Darwin 21.2.0 npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/mc/Documents/hashlips_art_engine-main/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" npm ERR! node-pre-gyp ERR! cwd /Users/mc/Documents/hashlips_art_engine-main/node_modules/canvas npm ERR! node-pre-gyp ERR! node -v v16.13.1 npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.6 npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in: npm ERR! /Users/mc/.npm/_logs/2021-12-22T09_34_55_768Z-debug.log mc@mcs-Air hashlips_art_engine-main %

tolicodes commented 2 years ago

Any followup on how to fix on M1?

wottpal commented 2 years ago

same issue

fazofazaal commented 2 years ago

I've been able to solve the issue, just use the node version specified on the readme, which is a release of version 14. The project includes .nvmrc file which specifies the version. So you can use nvm (node version manager) to install the specified version by running "nvm use". Make sure that you have selected the right version by running "node -v". The most important thing you need to know is that this version is not compatible with ARM64 (M1) architecture and only works with x86 architectures. So you need to run your terminal through Rosetta translation layer provided by appple. So as long as your terminal or vscode integrated terminal is being run via Rosetta, it should work.

illfio commented 2 years ago

I've been able to solve the issue, just use the node version specified on the readme, which is a release of version 14. The project includes .nvmrc file which specifies the version. So you can use nvm (node version manager) to install the specified version by running "nvm use". Make sure that you have selected the right version by running "node -v". The most important thing you need to know is that this version is not compatible with ARM64 (M1) architecture and only works with x86 architectures. So you need to run your terminal through Rosetta translation layer provided by appple. So as long as your terminal or vscode integrated terminal is being run via Rosetta, it should work.

Can you break this down for me? I'm pretty new into developing and don't know a lot of what you said.

artbyessea commented 2 years ago

I've been able to solve the issue, just use the node version specified on the readme, which is a release of version 14. The project includes .nvmrc file which specifies the version. So you can use nvm (node version manager) to install the specified version by running "nvm use". Make sure that you have selected the right version by running "node -v". The most important thing you need to know is that this version is not compatible with ARM64 (M1) architecture and only works with x86 architectures. So you need to run your terminal through Rosetta translation layer provided by appple. So as long as your terminal or vscode integrated terminal is being run via Rosetta, it should work.

This worked for me. Here's the link to download Node v. 14 which took a minute to find: https://nodejs.org/en/blog/release/v14.17.3/

travisskeen commented 2 years ago

I've been able to solve the issue, just use the node version specified on the readme, which is a release of version 14. The project includes .nvmrc file which specifies the version. So you can use nvm (node version manager) to install the specified version by running "nvm use". Make sure that you have selected the right version by running "node -v". The most important thing you need to know is that this version is not compatible with ARM64 (M1) architecture and only works with x86 architectures. So you need to run your terminal through Rosetta translation layer provided by appple. So as long as your terminal or vscode integrated terminal is being run via Rosetta, it should work.

@fazofazaal thank you for this! Would never have figued that out without your instructions.

Bjorncallewaert commented 2 years ago

I've been able to solve the issue, just use the node version specified on the readme, which is a release of version 14. The project includes .nvmrc file which specifies the version. So you can use nvm (node version manager) to install the specified version by running "nvm use". Make sure that you have selected the right version by running "node -v". The most important thing you need to know is that this version is not compatible with ARM64 (M1) architecture and only works with x86 architectures. So you need to run your terminal through Rosetta translation layer provided by appple. So as long as your terminal or vscode integrated terminal is being run via Rosetta, it should work.

Wow thank you this did it!!!!! If you need version 10 (see read me file) you find it here https://nodejs.org/dist/v10.18.0/ and chose the .pkg file and install.

ezdouglas commented 2 years ago

The issue is that you are using wrong version of node.

TO EVERYONE FACING A PROBLEM WITH NPM INSTALL NPM RUN GENERATE

I HAVE FOUND A FIX for MAC USERS M1!

1- Open terminal and type: nvm --version if you don't have nvm then you must install it with: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash

it is vital that you RESTART TERMINAL after this step.

2- Open terminal again and run: 

nvm install v16.13.0

3- re-download the source code from this github and open it in Visual Studio Code, do not open the past folder you had because most likely you have the modules installed already, just redownload and open a new folder.

4- in Visual Studio Code, press New Terminal

5- Run this code: nvm use v16.13.0

then If you don't have homebrew installed then install it with this command: (it can take 15 mins to install homebrew). 
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 
and then you must install the packages by running: 
eval $(/opt/homebrew/bin/brew shellenv)brew install pkg-config cairo pango libpng jpeg giflib librsvg

if you have the packages already installed then use: eval $(/opt/homebrew/bin/brew shellenv) brew reinstall pkg-config cairo pango libpng jpeg giflib librsvg

now Run: brew install yarn then yarn install then npm i then npm run generate

Everything should work now! If you have any error still, I am happy to help! It took me 5 hours to figure it out but I finally did.

mxna commented 2 years ago

Thanks ezdouglas, this combination seemed to work for me.

Two small notes for anyone else that is following this guide.

It should be the following order for these below commands.

"brew install yarn" and "npm run generate"

On Sun, Jan 16, 2022 at 5:36 PM ezdouglas @.***> wrote:

The issue is that you are using wrong version of node.

TO EVERYONE FACING A PROBLEM WITH NPM INSTALL NPM RUN GENERATE

I HAVE FOUND A FIX for MAC USERS M1!

1- Open terminal and type: nvm --version if you don't have nvm then you must install it with: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash

it is vital that you RESTART TERMINAL after this step.

2- Open terminal again and run: nvm install v16.13.0

3- re-download the source code from this github and open it in Visual Studio Code, do not open the past folder you had because most likely you have the modules installed already, just redownload and open a new folder.

4- in Visual Studio Code, press New Terminal

5- Run this code: nvm use v16.13.0

then If you don't have homebrew installed then install it with this command: (it can take 15 mins to install homebrew). /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" and then you must install the packages by running: eval $(/opt/homebrew/bin/brew shellenv) brew install pkg-config cairo pango libpng jpeg giflib librsvg

if you have the packages already installed then use: eval $(/opt/homebrew/bin/brew shellenv) brew reinstall pkg-config cairo pango libpng jpeg giflib librsvg

now Run: brew yarn install then yarn install then npm i then npm generate run

Everything should work now! If you have any error still, I am happy to help! It took me 5 hours to figure it out but I finally did.

— Reply to this email directly, view it on GitHub https://github.com/HashLips/hashlips_art_engine/issues/397#issuecomment-1013820253, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE7TXBW4XA7ZVVC7ZMGX7FLUWJRN3ANCNFSM5KPE52LA . You are receiving this because you commented.Message ID: @.***>

willisk commented 2 years ago

simply installing

brew install pkg-config cairo pango libpng jpeg giflib librsvg

worked for me

romarika commented 2 years ago

(C) Корпорация Майкрософт (Microsoft Corporation). Все права защищены. npm WARN using --force Recommended protections disabled. PS C:\hashlips_art_engine-main> yarn -g install

yarn install v1.22.18 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... error C:\hashlips_art_engine-main\node_modules\canvas: Command failed. Exit code: 1 Command: node-pre-gyp install --fallback-to-build Arguments: Directory: C:\hashlips_art_engine-main\node_modules\canvas Output: node-pre-gyp info it worked if it ends with ok node-pre-gyp info using node-pre-gyp@1.0.6 node-pre-gyp info using node@18.0.0 | win32 | x64 node-pre-gyp info check checked for "C:\hashlips_art_engine-main\node_modules\canvas\build\Release\canvas.node" (not found) node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v108-win32-unknown-x64.tar.gz node-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-v108-win32-unknown-x64.tar.gz node-pre-gyp WARN Pre-built binaries not installable for canvas@2.8.0 and node@18.0.0 (node-v108 ABI, unknown) (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-v108-win32-unknown-x64.tar.gz

C:\hashlips_art_engine-main\node_modules\canvas>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" clean ) else (node "" clean ) gyp info it worked if it ends with ok gyp info using node-gyp@9.0.0 gyp info using node@18.0.0 | win32 | x64 gyp info ok

C:\hashlips_art_engine-main\node_modules\canvas>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" configure --fallback-to-build --module=C:\hashlips_art_engine-main\node_modules\canvas\build\Release\canvas.node --module_name=canvas --module_path=C:\hashlips_art_engine-main\node_modules\canvas\build\Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108 ) else (node "" configure --fallback-to-build --module=C:\hashlips_art_engine-main\node_modules\canvas\build\Release\canvas.node --module_name=canvas --module_path=C:\hashlips_art_engine-main\node_modules\canvas\build\Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108 ) gyp info it worked if it ends with ok gyp info using node-gyp@9.0.0 gyp info using node@18.0.0 | win32 | x64 gyp info find Python using Python version 3.10.4 found at "C:\Python310\python.exe" gyp ERR! find VS gyp ERR! find VS msvs_version not set from command line or npm config gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt gyp ERR! find VS checking VS2019 (16.11.32413.511) found at: gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" gyp ERR! find VS - found "Visual Studio C++ core features" gyp ERR! find VS - missing any VC++ toolset gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use gyp ERR! find VS looking for Visual Studio 2015 gyp ERR! find VS - not found gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 gyp ERR! find VS gyp ERR! find VS Help please