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

UPDATED: Fix for Apple M1 Chips #1115

Closed
ipv6freely opened this issue Apr 23, 2022 · 66 comments
Closed

UPDATED: Fix for Apple M1 Chips #1115

ipv6freely opened this issue Apr 23, 2022 · 66 comments

Comments

@ipv6freely
Copy link

This updates #812 which is no longer the recommended method. Downgrading software is never a good idea, especially to a version so old as v14. There may be bugs, or potentially very unsafe code and security vulnerabilities.

The correct method is as follows:

  1. Download and install Node.js "Current" version, as opposed to the "LTS" (Long Term Support) version. This is now v18.0.0 as of the time of this post, but 17.x will work as well:
  2. Ensure you have homebrew installed. You can go to or just use this command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" to install Homebrew.
  3. Install the dependencies via Homebrew using this command: arch -arm64 brew install pkg-config cairo pango jpeg giflib librsvg
  4. In your root folder for the art engine project, install the project: npm install

@HashLips please go ahead and close/lock #812 since it's no longer relevant.

@lewixlabs
Copy link

lewixlabs commented Apr 23, 2022

"Urca!!" said in Italian :)
thanks @ipv6freely , works (and I think it's the best workaround for M1 architecture, instead of downgrading everything).
I would suggest to @HashLips to add this note on project readme, for M1 developers.

@samubiga3
Copy link

Hello :) You can fix this issue installing Rosetta terminal to your Visual Studio Code.

  1. Open Visual studio code and press cmd+shift+p
  2. Search and open this file terminal.integrated.profiles.osx
    3)Add this propriety: "terminal.integrated.profiles.osx": { ...., "rosetta": { "path": "arch", "args": ["-x86_64", "zsh", "-l"], "overrideName": true } }

@ipv6freely
Copy link
Author

Hello :) You can fix this issue installing Rosetta terminal to your Visual Studio Code.

  1. Open Visual studio code and press cmd+shift+p
  2. Search and open this file terminal.integrated.profiles.osx
    3)Add this propriety: "terminal.integrated.profiles.osx": { ...., "rosetta": { "path": "arch", "args": ["-x86_64", "zsh", "-l"], "overrideName": true } }

But you wouldn’t want to do that, so not really a fix.

@bolshoytoster
Copy link

@ipv6freely I think it's a bit rich to just say your solution is the best, I think this is a perfectly reasonable fix and doesn't require installing homebrew, which takes space and might not work for some people.

@ipv6freely
Copy link
Author

@ipv6freely I think it's a bit rich to just say your solution is the best, I think this is a perfectly reasonable fix and doesn't require installing homebrew, which takes space and might not work for some people.

It’s a workaround, but not a fix. Intentionally bypassing your architecture isn’t a great way to do things.

@samubiga3
Copy link

Hello :) You can fix this issue installing Rosetta terminal to your Visual Studio Code.

  1. Open Visual studio code and press cmd+shift+p
  2. Search and open this file terminal.integrated.profiles.osx
    3)Add this propriety: "terminal.integrated.profiles.osx": { ...., "rosetta": { "path": "arch", "args": ["-x86_64", "zsh", "-l"], "overrideName": true } }

But you wouldn’t want to do that, so not really a fix.

I think installing additional software like HomeBrew is not something that many people want either

@ipv6freely
Copy link
Author

Hello :) You can fix this issue installing Rosetta terminal to your Visual Studio Code.

  1. Open Visual studio code and press cmd+shift+p
  2. Search and open this file terminal.integrated.profiles.osx
    3)Add this propriety: "terminal.integrated.profiles.osx": { ...., "rosetta": { "path": "arch", "args": ["-x86_64", "zsh", "-l"], "overrideName": true } }

But you wouldn’t want to do that, so not really a fix.

I think installing additional software like HomeBrew is not something that many people want either

You likely won’t need to do that for long. Will depend on how quickly those packages are updated. Either way Rosetta is not a better alternative.

@samubiga3
Copy link

samubiga3 commented Apr 24, 2022

Hello :) You can fix this issue installing Rosetta terminal to your Visual Studio Code.

  1. Open Visual studio code and press cmd+shift+p
  2. Search and open this file terminal.integrated.profiles.osx
    3)Add this propriety: "terminal.integrated.profiles.osx": { ...., "rosetta": { "path": "arch", "args": ["-x86_64", "zsh", "-l"], "overrideName": true } }

But you wouldn’t want to do that, so not really a fix.

I think installing additional software like HomeBrew is not something that many people want either

You likely won’t need to do that for long. Will depend on how quickly those packages are updated. Either way Rosetta is not a better alternative.

Can I ask you why Rosetta can't be a better alternative?

@ipv6freely
Copy link
Author

Sure. It’s much better to build for the actual architecture then to translate an instruction set from x86 to arm64. Especially since a newer version of nodejs supports it natively. Rosetta is a workaround (literally - that’s what it exists for) for applications that have not yet migrated to native arm64.

Like I said, using Rosetta is a fine workaround but it’s definitely less than ideal and not something I would recommend.

Installing the dependencies via homebrew is likely not going to be needed for long. I would actually expect that most of them aren’t necessary to install manually anymore now that nodejs Current has moved from 17.x to 18.0.0 over the last week, but have not tested it yet.

@deemount
Copy link

Thanks for correction. I was too busy 👍🏻

@ipv6freely
Copy link
Author

I just did a test with a clean build of macOS 12.3.1. 18.0.0 definitely still fixes the issues, however because node-canvas "prebuilds aren't available for ARM CPUs", you have to either go with Homebrew or you can certainly build from source easily enough if you don't want the Homebrew overhead. I use Homebrew for a lot of other things so it wasn't really an issue for me.

Here's information about prebuilds not existing for ARM CPU: Automattic/node-canvas#1825 It's unfortunate, and frankly a bit lazy in my opinion, but it is what it is.

@drn999
Copy link

drn999 commented Apr 26, 2022

Hey @deemount - Thanks for the help getting my M1 chip up and running! Got a new issue. I have been getting this error in the HashLips engine. There is no pattern I can see in why it stops, layer issues or anything like that. I'm not a savvy coder and can't decode this. Can you help?

Thanks,

-D

Created edition: 601, with DNA: 413ac113a9a1a7e9b12393517bccafbe66420084
(node:11497) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, scandir '/Users/drn/Desktop/PIXEL PEW VSC V5/layers/BGGRAPHICS/'
at Object.readdirSync (fs.js:1047:3)
at getElements (/Users/drn/Desktop/PIXEL PEW VSC V5/src/main.js:73:6)
at /Users/drn/Desktop/PIXEL PEW VSC V5/src/main.js:92:15
at Array.map ()
at layersSetup (/Users/drn/Desktop/PIXEL PEW VSC V5/src/main.js:90:30)
at startCreating (/Users/drn/Desktop/PIXEL PEW VSC V5/src/main.js:356:20)
(Use NODE --trace-warnings ... to show where the warning was created)
(node:11497) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:11497) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@bolshoytoster
Copy link

@deemount you've probably misspelled BGGRAPHICS in your layersOrder. If you can't fix it yourself could you paste your layersConfigurations and the output of Get-ChildItem layers.

@ipv6freely
Copy link
Author

Hey @deemount - Thanks for the help getting my M1 chip up and running!

I think you meant me?

Got a new issue. I have been getting this error in the HashLips engine. There is no pattern I can see in why it stops, layer issues or anything like that. I'm not a savvy coder and can't decode this. Can you help?

Thanks,

-D

Created edition: 601, with DNA: 413ac113a9a1a7e9b12393517bccafbe66420084 (node:11497) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, scandir '/Users/drn/Desktop/PIXEL PEW VSC V5/layers/BGGRAPHICS/' at Object.readdirSync (fs.js:1047:3) at getElements (/Users/drn/Desktop/PIXEL PEW VSC V5/src/main.js:73:6) at /Users/drn/Desktop/PIXEL PEW VSC V5/src/main.js:92:15 at Array.map () at layersSetup (/Users/drn/Desktop/PIXEL PEW VSC V5/src/main.js:90:30) at startCreating (/Users/drn/Desktop/PIXEL PEW VSC V5/src/main.js:356:20) (Use NODE --trace-warnings ... to show where the warning was created) (node:11497) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:11497) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

This isn't an M1 issue so it's not really meant for this thread. Please either ask in Discord, or open a new Issue ticket.

@jokofler
Copy link

jokofler commented May 9, 2022

Hello and thank you for your help. Sadly the solution suggested above doesnt work for me.

After doing this command from Step 3: % arch -arm64 brew install pkg-config cairo pango jpeg giflib librsvg

I get the following error:

Warning: No available formula with the name "pkg-config".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

Do you have any Idea what I can do? Kinda feel stupid searching hours for solutions but not being able to figure this one. Thank you <3

@ipv6freely
Copy link
Author

Hello and thank you for your help. Sadly the solution suggested above doesnt work for me.

After doing this command from Step 3: % arch -arm64 brew install pkg-config cairo pango jpeg giflib librsvg

I get the following error:

Warning: No available formula with the name "pkg-config". ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching for a previously deleted formula (in the last month)... Error: No previously deleted formula found. ==> Searching taps on GitHub... Error: No formulae found in taps.

Do you have any Idea what I can do? Kinda feel stupid searching hours for solutions but not being able to figure this one. Thank you <3

Try taking that one out?

@bananakiu
Copy link

Thank you. This resolved my issue. I was using an 2020 M1 Macbook Air

@jokofler
Copy link

jokofler commented May 9, 2022

Try taking that one out?

What do you mean by that precisely, sir? I went ahead with the next step but it doesn´t work.

@ipv6freely
Copy link
Author

Try taking that one out?

What do you mean by that precisely, sir? I went ahead with the next step but it doesn´t work.

I mean to remove pkg-config from the list of packages you're installing in Homebrew. However, I would try updating Homebrew first: brew update. This grabs the latest package list from Homebrew. Once that's done, try again. If it doesn't work still, then remove pkg-config from the list.

@cryptofannatic
Copy link

@ipv6freely should we first delete the nod modules folder from the art engine folder?

@bolshoytoster
Copy link

@cryptofannatic do it then run npm install again.

@cryptofannatic
Copy link

@bolshoytoster i did that but it's still giving me the same error that i was getting earlier when i tried installing the modules using vscode
Screenshot 2022-08-14 at 3 21 00 AM
npm audit fix doesn't seem to fix the issues either.

@bolshoytoster
Copy link

@cryptofannatic that's not an error, it's just a warning.

@cryptofannatic
Copy link

cryptofannatic commented Aug 13, 2022

@bolshoytoster earlier for some reason when i used to get this error, it wouldn't let me generate the art either and used to give err_dlopen_failed error.
But this time i installed node @ipv6freely's steps, i did get the some warning but it's generating the art now. Weird - here's a link to my issue

I guess it was because i hadn't deleted the node modules folder that's why

Thanks for the help btw!

@WissemEd
Copy link

Hi everyone : I have tried to install the latest node version via homebrew and I have ran the command arch -arm64 brew install pkg-config cairo pango jpeg giflib librsvg Unfortunately, I keep having an error about the command "node" and "nvm" not found if I change my location. Like shown in the image :
Capture d’écran 2022-08-24 à 21 24 47

Does anyone know how to solve it ? Have I made a mistake in my installation process ? Thank you in advance

@bolshoytoster
Copy link

bolshoytoster commented Aug 24, 2022

@WissemEd could you paste the output of running which node and echo $PATH while in both ~ and ~/Documents please.

@ipv6freely
Copy link
Author

ipv6freely commented Aug 24, 2022

Hi everyone : I have tried to install the latest node version via homebrew and I have ran the command arch -arm64 brew install pkg-config cairo pango jpeg giflib librsvg Unfortunately, I keep having an error about the command "node" and "nvm" not found if I change my location. Like shown in the image : Capture d’écran 2022-08-24 à 21 24 47

Does anyone know how to solve it ? Have I made a mistake in my installation process ? Thank you in advance

Looks like /usr/local/bin is not in your PATH.

@bolshoytoster
Copy link

bolshoytoster commented Apr 22, 2023

@GUNZE314532 you could try restarting your terminal or running source ~/.zshrc to use the updated PATH.

Also, you only need to install brew once.

@GUNZE314532
Copy link

@bolshoytoster It was same.... Please check the following.🙏

satoshishigeta@Satoshis-MacBook-Pro hashlips_art_engine-main % arch -arm64 brew install pkg-config cairo pango jpeg giflib librsvg
arch: Can't find brew in PATH
satoshishigeta@Satoshis-MacBook-Pro hashlips_art_engine-main % source ~/.zshrc
source: no such file or directory: /Users/satoshishigeta/.zshrc
satoshishigeta@Satoshis-MacBook-Pro hashlips_art_engine-main % arch -arm64 brew install pkg-config cairo pango jpeg giflib librsvg
arch: Can't find brew in PATH
satoshishigeta@Satoshis-MacBook-Pro hashlips_art_engine-main %

@bolshoytoster
Copy link

@GUNZE314532 did you try restarting your terminal?

@GUNZE314532
Copy link

@bolshoytoster Yes, I did. I deleted the terminal, then made new terminal.

@bolshoytoster
Copy link

@GUNZE314532 I noticed at the brew installation it ends at

Press RETURN/ENTER to continue or any other key to abort:

Did you actually complete the brew installation or did you press another key at that point?

@GUNZE314532
Copy link

@bolshoytoster I tried it many times, so I don't remember much, but the first time I did it, I ran another command. I still got an error, so I typed "RETURN" next.

@bolshoytoster
Copy link

@GUNZE314532 you gave to press the return/enter key, not literally type 'RETURN'

@GUNZE314532
Copy link

Hi @bolshoytoster , It was same... Thanks for your help.

satoshishigeta@Kaitlins-iPhone hashlips_art_engine-main % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
==> Checking for sudo access (which may request your password)...
Password:
==> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/_brew
/opt/homebrew/etc/bash_completion.d/brew
/opt/homebrew
==> The following new directories will be created:
/opt/homebrew/bin
/opt/homebrew/etc
/opt/homebrew/include
/opt/homebrew/lib
/opt/homebrew/sbin
/opt/homebrew/share
/opt/homebrew/var
/opt/homebrew/opt
/opt/homebrew/share/zsh
/opt/homebrew/share/zsh/site-functions
/opt/homebrew/var/homebrew
/opt/homebrew/var/homebrew/linked
/opt/homebrew/Cellar
/opt/homebrew/Caskroom
/opt/homebrew/Frameworks

Press RETURN/ENTER to continue or any other key to abort:
satoshishigeta@Kaitlins-iPhone hashlips_art_engine-main % RETURN/ENTER
zsh: no such file or directory: RETURN/ENTER
satoshishigeta@Kaitlins-iPhone hashlips_art_engine-main %

@bolshoytoster
Copy link

@GUNZE314532
Copy link

Hi @bolshoytoster , Thanks for your opinion again. And sorry I was typing actual "RETUR" text.

I tried again to just did return key, and It was seems like working to install Homebrew, but it happed another problem. Please check the following.

satoshishigeta@Satoshis-MacBook-Pro hashlips_art_engine-main % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" to install Homebrew.
==> Checking for sudo access (which may request your password)...
Password:
Sorry, try again.
Password:
==> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/_brew
/opt/homebrew/etc/bash_completion.d/brew
/opt/homebrew
==> The following new directories will be created:
/opt/homebrew/bin
/opt/homebrew/etc
/opt/homebrew/include
/opt/homebrew/lib
/opt/homebrew/sbin
/opt/homebrew/share
/opt/homebrew/var
/opt/homebrew/opt
/opt/homebrew/share/zsh
/opt/homebrew/share/zsh/site-functions
/opt/homebrew/var/homebrew
/opt/homebrew/var/homebrew/linked
/opt/homebrew/Cellar
/opt/homebrew/Caskroom
/opt/homebrew/Frameworks

Press RETURN/ENTER to continue or any other key to abort:
==> /usr/bin/sudo /usr/bin/install -d -o root -g wheel -m 0755 /opt/homebrew
==> /usr/bin/sudo /bin/mkdir -p /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/var /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks
==> /usr/bin/sudo /bin/chmod ug=rwx /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/var /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks
==> /usr/bin/sudo /bin/chmod go-w /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown satoshishigeta /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/var /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks
==> /usr/bin/sudo /usr/bin/chgrp admin /opt/homebrew/bin /opt/homebrew/etc /opt/homebrew/include /opt/homebrew/lib /opt/homebrew/sbin /opt/homebrew/share /opt/homebrew/var /opt/homebrew/opt /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew /opt/homebrew/var/homebrew/linked /opt/homebrew/Cellar /opt/homebrew/Caskroom /opt/homebrew/Frameworks
==> /usr/bin/sudo /usr/sbin/chown -R satoshishigeta:admin /opt/homebrew
==> /usr/bin/sudo /bin/mkdir -p /Users/satoshishigeta/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/satoshishigeta/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown -R satoshishigeta /Users/satoshishigeta/Library/Caches/Homebrew
==> Downloading and installing Homebrew...
remote: Enumerating objects: 239542, done.
remote: Counting objects: 100% (2647/2647), done.
remote: Compressing objects: 100% (1418/1418), done.
remote: Total 239542 (delta 1275), reused 2478 (delta 1162), pack-reused 236895
Receiving objects: 100% (239542/239542), 70.41 MiB | 14.80 MiB/s, done.
Resolving deltas: 100% (174945/174945), done.
From https://github.com/Homebrew/brew

  • [new branch] master -> origin/master
  • [new tag] 0.1 -> 0.1
  • [new tag] 0.2 -> 0.2
  • [new tag] 0.3 -> 0.3
  • [new tag] 0.4 -> 0.4
  • [new tag] 0.5 -> 0.5
  • [new tag] 0.6 -> 0.6
  • [new tag] 0.7 -> 0.7
  • [new tag] 0.7.1 -> 0.7.1
  • [new tag] 0.8 -> 0.8
  • [new tag] 0.8.1 -> 0.8.1
  • [new tag] 0.9 -> 0.9
  • [new tag] 0.9.1 -> 0.9.1
  • [new tag] 0.9.2 -> 0.9.2
  • [new tag] 0.9.3 -> 0.9.3
  • [new tag] 0.9.4 -> 0.9.4
  • [new tag] 0.9.5 -> 0.9.5
  • [new tag] 0.9.8 -> 0.9.8
  • [new tag] 0.9.9 -> 0.9.9
  • [new tag] 1.0.0 -> 1.0.0
  • [new tag] 1.0.1 -> 1.0.1
  • [new tag] 1.0.2 -> 1.0.2
  • [new tag] 1.0.3 -> 1.0.3
  • [new tag] 1.0.4 -> 1.0.4
  • [new tag] 1.0.5 -> 1.0.5
  • [new tag] 1.0.6 -> 1.0.6
  • [new tag] 1.0.7 -> 1.0.7
  • [new tag] 1.0.8 -> 1.0.8
  • [new tag] 1.0.9 -> 1.0.9
  • [new tag] 1.1.0 -> 1.1.0
  • [new tag] 1.1.1 -> 1.1.1
  • [new tag] 1.1.10 -> 1.1.10
  • [new tag] 1.1.11 -> 1.1.11
  • [new tag] 1.1.12 -> 1.1.12
  • [new tag] 1.1.13 -> 1.1.13
  • [new tag] 1.1.2 -> 1.1.2
  • [new tag] 1.1.3 -> 1.1.3
  • [new tag] 1.1.4 -> 1.1.4
  • [new tag] 1.1.5 -> 1.1.5
  • [new tag] 1.1.6 -> 1.1.6
  • [new tag] 1.1.7 -> 1.1.7
  • [new tag] 1.1.8 -> 1.1.8
  • [new tag] 1.1.9 -> 1.1.9
  • [new tag] 1.2.0 -> 1.2.0
  • [new tag] 1.2.1 -> 1.2.1
  • [new tag] 1.2.2 -> 1.2.2
  • [new tag] 1.2.3 -> 1.2.3
  • [new tag] 1.2.4 -> 1.2.4
  • [new tag] 1.2.5 -> 1.2.5
  • [new tag] 1.2.6 -> 1.2.6
  • [new tag] 1.3.0 -> 1.3.0
  • [new tag] 1.3.1 -> 1.3.1
  • [new tag] 1.3.2 -> 1.3.2
  • [new tag] 1.3.3 -> 1.3.3
  • [new tag] 1.3.4 -> 1.3.4
  • [new tag] 1.3.5 -> 1.3.5
  • [new tag] 1.3.6 -> 1.3.6
  • [new tag] 1.3.7 -> 1.3.7
  • [new tag] 1.3.8 -> 1.3.8
  • [new tag] 1.3.9 -> 1.3.9
  • [new tag] 1.4.0 -> 1.4.0
  • [new tag] 1.4.1 -> 1.4.1
  • [new tag] 1.4.2 -> 1.4.2
  • [new tag] 1.4.3 -> 1.4.3
  • [new tag] 1.5.0 -> 1.5.0
  • [new tag] 1.5.1 -> 1.5.1
  • [new tag] 1.5.10 -> 1.5.10
  • [new tag] 1.5.11 -> 1.5.11
  • [new tag] 1.5.12 -> 1.5.12
  • [new tag] 1.5.13 -> 1.5.13
  • [new tag] 1.5.14 -> 1.5.14
  • [new tag] 1.5.2 -> 1.5.2
  • [new tag] 1.5.3 -> 1.5.3
  • [new tag] 1.5.4 -> 1.5.4
  • [new tag] 1.5.5 -> 1.5.5
  • [new tag] 1.5.6 -> 1.5.6
  • [new tag] 1.5.7 -> 1.5.7
  • [new tag] 1.5.8 -> 1.5.8
  • [new tag] 1.5.9 -> 1.5.9
  • [new tag] 1.6.0 -> 1.6.0
  • [new tag] 1.6.1 -> 1.6.1
  • [new tag] 1.6.10 -> 1.6.10
  • [new tag] 1.6.11 -> 1.6.11
  • [new tag] 1.6.12 -> 1.6.12
  • [new tag] 1.6.13 -> 1.6.13
  • [new tag] 1.6.14 -> 1.6.14
  • [new tag] 1.6.15 -> 1.6.15
  • [new tag] 1.6.16 -> 1.6.16
  • [new tag] 1.6.17 -> 1.6.17
  • [new tag] 1.6.2 -> 1.6.2
  • [new tag] 1.6.3 -> 1.6.3
  • [new tag] 1.6.4 -> 1.6.4
  • [new tag] 1.6.5 -> 1.6.5
  • [new tag] 1.6.6 -> 1.6.6
  • [new tag] 1.6.7 -> 1.6.7
  • [new tag] 1.6.8 -> 1.6.8
  • [new tag] 1.6.9 -> 1.6.9
  • [new tag] 1.7.0 -> 1.7.0
  • [new tag] 1.7.1 -> 1.7.1
  • [new tag] 1.7.2 -> 1.7.2
  • [new tag] 1.7.3 -> 1.7.3
  • [new tag] 1.7.4 -> 1.7.4
  • [new tag] 1.7.5 -> 1.7.5
  • [new tag] 1.7.6 -> 1.7.6
  • [new tag] 1.7.7 -> 1.7.7
  • [new tag] 1.8.0 -> 1.8.0
  • [new tag] 1.8.1 -> 1.8.1
  • [new tag] 1.8.2 -> 1.8.2
  • [new tag] 1.8.3 -> 1.8.3
  • [new tag] 1.8.4 -> 1.8.4
  • [new tag] 1.8.5 -> 1.8.5
  • [new tag] 1.8.6 -> 1.8.6
  • [new tag] 1.9.0 -> 1.9.0
  • [new tag] 1.9.1 -> 1.9.1
  • [new tag] 1.9.2 -> 1.9.2
  • [new tag] 1.9.3 -> 1.9.3
  • [new tag] 2.0.0 -> 2.0.0
  • [new tag] 2.0.1 -> 2.0.1
  • [new tag] 2.0.2 -> 2.0.2
  • [new tag] 2.0.3 -> 2.0.3
  • [new tag] 2.0.4 -> 2.0.4
  • [new tag] 2.0.5 -> 2.0.5
  • [new tag] 2.0.6 -> 2.0.6
  • [new tag] 2.1.0 -> 2.1.0
  • [new tag] 2.1.1 -> 2.1.1
  • [new tag] 2.1.10 -> 2.1.10
  • [new tag] 2.1.11 -> 2.1.11
  • [new tag] 2.1.12 -> 2.1.12
  • [new tag] 2.1.13 -> 2.1.13
  • [new tag] 2.1.14 -> 2.1.14
  • [new tag] 2.1.15 -> 2.1.15
  • [new tag] 2.1.16 -> 2.1.16
  • [new tag] 2.1.2 -> 2.1.2
  • [new tag] 2.1.3 -> 2.1.3
  • [new tag] 2.1.4 -> 2.1.4
  • [new tag] 2.1.5 -> 2.1.5
  • [new tag] 2.1.6 -> 2.1.6
  • [new tag] 2.1.7 -> 2.1.7
  • [new tag] 2.1.8 -> 2.1.8
  • [new tag] 2.1.9 -> 2.1.9
  • [new tag] 2.2.0 -> 2.2.0
  • [new tag] 2.2.1 -> 2.2.1
  • [new tag] 2.2.10 -> 2.2.10
  • [new tag] 2.2.11 -> 2.2.11
  • [new tag] 2.2.12 -> 2.2.12
  • [new tag] 2.2.13 -> 2.2.13
  • [new tag] 2.2.14 -> 2.2.14
  • [new tag] 2.2.15 -> 2.2.15
  • [new tag] 2.2.16 -> 2.2.16
  • [new tag] 2.2.17 -> 2.2.17
  • [new tag] 2.2.2 -> 2.2.2
  • [new tag] 2.2.3 -> 2.2.3
  • [new tag] 2.2.4 -> 2.2.4
  • [new tag] 2.2.5 -> 2.2.5
  • [new tag] 2.2.6 -> 2.2.6
  • [new tag] 2.2.7 -> 2.2.7
  • [new tag] 2.2.8 -> 2.2.8
  • [new tag] 2.2.9 -> 2.2.9
  • [new tag] 2.3.0 -> 2.3.0
  • [new tag] 2.4.0 -> 2.4.0
  • [new tag] 2.4.1 -> 2.4.1
  • [new tag] 2.4.10 -> 2.4.10
  • [new tag] 2.4.11 -> 2.4.11
  • [new tag] 2.4.12 -> 2.4.12
  • [new tag] 2.4.13 -> 2.4.13
  • [new tag] 2.4.14 -> 2.4.14
  • [new tag] 2.4.15 -> 2.4.15
  • [new tag] 2.4.16 -> 2.4.16
  • [new tag] 2.4.2 -> 2.4.2
  • [new tag] 2.4.3 -> 2.4.3
  • [new tag] 2.4.4 -> 2.4.4
  • [new tag] 2.4.5 -> 2.4.5
  • [new tag] 2.4.6 -> 2.4.6
  • [new tag] 2.4.7 -> 2.4.7
  • [new tag] 2.4.8 -> 2.4.8
  • [new tag] 2.4.9 -> 2.4.9
  • [new tag] 2.5.0 -> 2.5.0
  • [new tag] 2.5.1 -> 2.5.1
  • [new tag] 2.5.10 -> 2.5.10
  • [new tag] 2.5.11 -> 2.5.11
  • [new tag] 2.5.12 -> 2.5.12
  • [new tag] 2.5.2 -> 2.5.2
  • [new tag] 2.5.3 -> 2.5.3
  • [new tag] 2.5.4 -> 2.5.4
  • [new tag] 2.5.5 -> 2.5.5
  • [new tag] 2.5.6 -> 2.5.6
  • [new tag] 2.5.7 -> 2.5.7
  • [new tag] 2.5.8 -> 2.5.8
  • [new tag] 2.5.9 -> 2.5.9
  • [new tag] 2.6.0 -> 2.6.0
  • [new tag] 2.6.1 -> 2.6.1
  • [new tag] 2.6.2 -> 2.6.2
  • [new tag] 2.7.0 -> 2.7.0
  • [new tag] 2.7.1 -> 2.7.1
  • [new tag] 2.7.2 -> 2.7.2
  • [new tag] 2.7.3 -> 2.7.3
  • [new tag] 2.7.4 -> 2.7.4
  • [new tag] 2.7.5 -> 2.7.5
  • [new tag] 2.7.6 -> 2.7.6
  • [new tag] 2.7.7 -> 2.7.7
  • [new tag] 3.0.0 -> 3.0.0
  • [new tag] 3.0.1 -> 3.0.1
  • [new tag] 3.0.10 -> 3.0.10
  • [new tag] 3.0.11 -> 3.0.11
  • [new tag] 3.0.2 -> 3.0.2
  • [new tag] 3.0.3 -> 3.0.3
  • [new tag] 3.0.4 -> 3.0.4
  • [new tag] 3.0.5 -> 3.0.5
  • [new tag] 3.0.6 -> 3.0.6
  • [new tag] 3.0.7 -> 3.0.7
  • [new tag] 3.0.8 -> 3.0.8
  • [new tag] 3.0.9 -> 3.0.9
  • [new tag] 3.1.0 -> 3.1.0
  • [new tag] 3.1.1 -> 3.1.1
  • [new tag] 3.1.10 -> 3.1.10
  • [new tag] 3.1.11 -> 3.1.11
  • [new tag] 3.1.12 -> 3.1.12
  • [new tag] 3.1.2 -> 3.1.2
  • [new tag] 3.1.3 -> 3.1.3
  • [new tag] 3.1.4 -> 3.1.4
  • [new tag] 3.1.5 -> 3.1.5
  • [new tag] 3.1.6 -> 3.1.6
  • [new tag] 3.1.7 -> 3.1.7
  • [new tag] 3.1.8 -> 3.1.8
  • [new tag] 3.1.9 -> 3.1.9
  • [new tag] 3.2.0 -> 3.2.0
  • [new tag] 3.2.1 -> 3.2.1
  • [new tag] 3.2.10 -> 3.2.10
  • [new tag] 3.2.11 -> 3.2.11
  • [new tag] 3.2.12 -> 3.2.12
  • [new tag] 3.2.13 -> 3.2.13
  • [new tag] 3.2.14 -> 3.2.14
  • [new tag] 3.2.15 -> 3.2.15
  • [new tag] 3.2.16 -> 3.2.16
  • [new tag] 3.2.17 -> 3.2.17
  • [new tag] 3.2.2 -> 3.2.2
  • [new tag] 3.2.3 -> 3.2.3
  • [new tag] 3.2.4 -> 3.2.4
  • [new tag] 3.2.5 -> 3.2.5
  • [new tag] 3.2.6 -> 3.2.6
  • [new tag] 3.2.7 -> 3.2.7
  • [new tag] 3.2.8 -> 3.2.8
  • [new tag] 3.2.9 -> 3.2.9
  • [new tag] 3.3.0 -> 3.3.0
  • [new tag] 3.3.1 -> 3.3.1
  • [new tag] 3.3.10 -> 3.3.10
  • [new tag] 3.3.11 -> 3.3.11
  • [new tag] 3.3.12 -> 3.3.12
  • [new tag] 3.3.13 -> 3.3.13
  • [new tag] 3.3.14 -> 3.3.14
  • [new tag] 3.3.15 -> 3.3.15
  • [new tag] 3.3.16 -> 3.3.16
  • [new tag] 3.3.2 -> 3.3.2
  • [new tag] 3.3.3 -> 3.3.3
  • [new tag] 3.3.4 -> 3.3.4
  • [new tag] 3.3.5 -> 3.3.5
  • [new tag] 3.3.6 -> 3.3.6
  • [new tag] 3.3.7 -> 3.3.7
  • [new tag] 3.3.8 -> 3.3.8
  • [new tag] 3.3.9 -> 3.3.9
  • [new tag] 3.4.0 -> 3.4.0
  • [new tag] 3.4.1 -> 3.4.1
  • [new tag] 3.4.10 -> 3.4.10
  • [new tag] 3.4.11 -> 3.4.11
  • [new tag] 3.4.2 -> 3.4.2
  • [new tag] 3.4.3 -> 3.4.3
  • [new tag] 3.4.4 -> 3.4.4
  • [new tag] 3.4.5 -> 3.4.5
  • [new tag] 3.4.6 -> 3.4.6
  • [new tag] 3.4.7 -> 3.4.7
  • [new tag] 3.4.8 -> 3.4.8
  • [new tag] 3.4.9 -> 3.4.9
  • [new tag] 3.5.0 -> 3.5.0
  • [new tag] 3.5.1 -> 3.5.1
  • [new tag] 3.5.10 -> 3.5.10
  • [new tag] 3.5.2 -> 3.5.2
  • [new tag] 3.5.3 -> 3.5.3
  • [new tag] 3.5.4 -> 3.5.4
  • [new tag] 3.5.5 -> 3.5.5
  • [new tag] 3.5.6 -> 3.5.6
  • [new tag] 3.5.7 -> 3.5.7
  • [new tag] 3.5.8 -> 3.5.8
  • [new tag] 3.5.9 -> 3.5.9
  • [new tag] 3.6.0 -> 3.6.0
  • [new tag] 3.6.1 -> 3.6.1
  • [new tag] 3.6.10 -> 3.6.10
  • [new tag] 3.6.11 -> 3.6.11
  • [new tag] 3.6.12 -> 3.6.12
  • [new tag] 3.6.13 -> 3.6.13
  • [new tag] 3.6.14 -> 3.6.14
  • [new tag] 3.6.15 -> 3.6.15
  • [new tag] 3.6.16 -> 3.6.16
  • [new tag] 3.6.17 -> 3.6.17
  • [new tag] 3.6.18 -> 3.6.18
  • [new tag] 3.6.19 -> 3.6.19
  • [new tag] 3.6.2 -> 3.6.2
  • [new tag] 3.6.20 -> 3.6.20
  • [new tag] 3.6.21 -> 3.6.21
  • [new tag] 3.6.3 -> 3.6.3
  • [new tag] 3.6.4 -> 3.6.4
  • [new tag] 3.6.5 -> 3.6.5
  • [new tag] 3.6.6 -> 3.6.6
  • [new tag] 3.6.7 -> 3.6.7
  • [new tag] 3.6.8 -> 3.6.8
  • [new tag] 3.6.9 -> 3.6.9
  • [new tag] 4.0.0 -> 4.0.0
  • [new tag] 4.0.1 -> 4.0.1
  • [new tag] 4.0.10 -> 4.0.10
  • [new tag] 4.0.11 -> 4.0.11
  • [new tag] 4.0.12 -> 4.0.12
  • [new tag] 4.0.13 -> 4.0.13
  • [new tag] 4.0.14 -> 4.0.14
  • [new tag] 4.0.15 -> 4.0.15
  • [new tag] 4.0.2 -> 4.0.2
  • [new tag] 4.0.3 -> 4.0.3
  • [new tag] 4.0.4 -> 4.0.4
  • [new tag] 4.0.5 -> 4.0.5
  • [new tag] 4.0.6 -> 4.0.6
  • [new tag] 4.0.7 -> 4.0.7
  • [new tag] 4.0.8 -> 4.0.8
  • [new tag] 4.0.9 -> 4.0.9
    HEAD is now at 512d7c961 Merge pull request #15311 from dduugg/prune-activesupport
    Warning: /opt/homebrew/bin is not in your PATH.
    Instructions on how to configure your shell for Homebrew
    can be found in the 'Next steps' section below.
    ==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations

==> Next steps:

  • Run these two commands in your terminal to add Homebrew to your PATH:
    (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/satoshishigeta/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"
  • Run brew help to get started
  • Further documentation:
    https://docs.brew.sh

satoshishigeta@Satoshis-MacBook-Pro hashlips_art_engine-main % arch -arm64 brew install pkg-config cairo pango jpeg giflib librsvg
arch: Can't find brew in PATH
satoshishigeta@Satoshis-MacBook-Pro hashlips_art_engine-main % arch -arm64 brew install pkg-config cairo pango jpeg giflib librsvg
arch: Can't find brew in PATH
satoshishigeta@Satoshis-MacBook-Pro hashlips_art_engine-main % source ~/.zshrc
source: no such file or directory: /Users/satoshishigeta/.zshrc

@bolshoytoster
Copy link

@GUNZE314532 did you try the bit in "Next steps":

Warning: /opt/homebrew/bin is not in your PATH.
Instructions on how to configure your shell for Homebrew
can be found in the 'Next steps' section below.

...

==> Next steps:

    Run these two commands in your terminal to add Homebrew to your PATH:
    (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/satoshishigeta/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"

@GUNZE314532
Copy link

Hi, @bolshoytoster Like below? But It didn't work...

Warning: /opt/homebrew/bin is not in your PATH.
Instructions on how to configure your shell for Homebrew
can be found in the 'Next steps' section below.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations

==> Next steps:

  • Run these two commands in your terminal to add Homebrew to your PATH:
    (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/satoshishigeta/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"
  • Run brew help to get started
  • Further documentation:
    https://docs.brew.sh

satoshishigeta@Satoshis-MacBook-Pro hashlips_art_engine-main %
satoshishigeta@Satoshis-MacBook-Pro hashlips_art_engine-main % 'eval "$(/opt/homebrew/bin/brew shellenv)"'
zsh: no such file or directory: eval "$(/opt/homebrew/bin/brew shellenv)"
satoshishigeta@Satoshis-MacBook-Pro hashlips_art_engine-main %

@bolshoytoster
Copy link

@GUNZE314532 you're meant to run:

(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/satoshishigeta/.zprofile

then

eval "$(/opt/homebrew/bin/brew shellenv)"

@GUNZE314532
Copy link

@bolshoytoster Thank you! How about next?

==> Next steps:

  • Run these two commands in your terminal to add Homebrew to your PATH:
    (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/satoshishigeta/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"
  • Run brew help to get started
  • Further documentation:
    https://docs.brew.sh

satoshishigeta@Satoshis-MacBook-Pro hashlips_art_engine-main %
satoshishigeta@Satoshis-MacBook-Pro hashlips_art_engine-main % 'eval "$(/opt/homebrew/bin/brew shellenv)"'
zsh: no such file or directory: eval "$(/opt/homebrew/bin/brew shellenv)"
satoshishigeta@Satoshis-MacBook-Pro hashlips_art_engine-main % (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/satoshishigeta/.zprofile
satoshishigeta@Satoshis-MacBook-Pro hashlips_art_engine-main % eval "$(/opt/homebrew/bin/brew shellenv)"
satoshishigeta@Satoshis-MacBook-Pro hashlips_art_engine-main %

@bolshoytoster
Copy link

@GUNZE314532 you should be able to run arch -arm64 brew install pkg-config cairo pango jpeg giflib librsvg and npm install now.

@GUNZE314532
Copy link

Hi @bolshoytoster It was error again... The following is very very long when I copy all the text, so I copy-pasted the text from the middle. Please check.

If you need to have jpeg first in your PATH, run:
echo 'export PATH="/opt/homebrew/opt/jpeg/bin:$PATH"' >> ~/.zshrc

For compilers to find jpeg you may need to set:
export LDFLAGS="-L/opt/homebrew/opt/jpeg/lib"
export CPPFLAGS="-I/opt/homebrew/opt/jpeg/include"

For pkg-config to find jpeg you may need to set:
export PKG_CONFIG_PATH="/opt/homebrew/opt/jpeg/lib/pkgconfig"
==> Summary
🍺 /opt/homebrew/Cellar/jpeg/9e: 21 files, 903.6KB
==> Running brew cleanup jpeg...
==> Pouring giflib--5.2.1.arm64_ventura.bottle.tar.gz
🍺 /opt/homebrew/Cellar/giflib/5.2.1: 19 files, 540.2KB
==> Running brew cleanup giflib...
==> Installing dependencies for librsvg: jpeg-turbo, lz4, xz, zstd, libtiff and gdk-pixbuf
==> Installing librsvg dependency: jpeg-turbo
==> Pouring jpeg-turbo--2.1.5.1.arm64_ventura.bottle.tar.gz
🍺 /opt/homebrew/Cellar/jpeg-turbo/2.1.5.1: 44 files, 2.5MB
==> Installing librsvg dependency: lz4
==> Pouring lz4--1.9.4.arm64_ventura.bottle.tar.gz
🍺 /opt/homebrew/Cellar/lz4/1.9.4: 22 files, 680KB
==> Installing librsvg dependency: xz
==> Pouring xz--5.4.2.arm64_ventura.bottle.tar.gz
🍺 /opt/homebrew/Cellar/xz/5.4.2: 162 files, 2.5MB
==> Installing librsvg dependency: zstd
==> Pouring zstd--1.5.5.arm64_ventura.bottle.tar.gz
🍺 /opt/homebrew/Cellar/zstd/1.5.5: 31 files, 2.3MB
==> Installing librsvg dependency: libtiff
==> Pouring libtiff--4.5.0.arm64_ventura.bottle.tar.gz
🍺 /opt/homebrew/Cellar/libtiff/4.5.0: 474 files, 8.4MB
==> Installing librsvg dependency: gdk-pixbuf
==> Pouring gdk-pixbuf--2.42.10_1.arm64_ventura.bottle.tar.gz
==> /opt/homebrew/Cellar/gdk-pixbuf/2.42.10_1/bin/gdk-pixbuf-query-loaders --update-cache
🍺 /opt/homebrew/Cellar/gdk-pixbuf/2.42.10_1: 150 files, 3.9MB
==> Installing librsvg
==> Pouring librsvg--2.56.0.arm64_ventura.bottle.tar.gz
==> /opt/homebrew/opt/gdk-pixbuf/bin/gdk-pixbuf-query-loaders --update-cache
🍺 /opt/homebrew/Cellar/librsvg/2.56.0: 22 files, 52.5MB
==> Running brew cleanup librsvg...
==> Caveats
==> jpeg
jpeg is keg-only, which means it was not symlinked into /opt/homebrew,
because it conflicts with jpeg-turbo.

If you need to have jpeg first in your PATH, run:
echo 'export PATH="/opt/homebrew/opt/jpeg/bin:$PATH"' >> ~/.zshrc

For compilers to find jpeg you may need to set:
export LDFLAGS="-L/opt/homebrew/opt/jpeg/lib"
export CPPFLAGS="-I/opt/homebrew/opt/jpeg/include"

For pkg-config to find jpeg you may need to set:
export PKG_CONFIG_PATH="/opt/homebrew/opt/jpeg/lib/pkgconfig"
satoshishigeta@Satoshis-MacBook-Pro 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/satoshishigeta/Desktop/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! SOLINK_MODULE(target) Release/canvas-postbuild.node
npm ERR! CXX(target) Release/obj.target/canvas/src/backend/Backend.o
npm ERR! Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/satoshishigeta/Desktop/hashlips_art_engine-main/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/satoshishigeta/Desktop/hashlips_art_engine-main/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (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] | darwin | arm64
npm ERR! node-pre-gyp info check checked for "/Users/satoshishigeta/Desktop/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-v115-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-v115-darwin-unknown-arm64.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v115 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-v115-darwin-unknown-arm64.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | arm64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | arm64
npm ERR! gyp info find Python using Python version 3.9.6 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/satoshishigeta/Desktop/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/satoshishigeta/Library/Caches/node-gyp/20.0.0/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/satoshishigeta/Library/Caches/node-gyp/20.0.0',
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/satoshishigeta/Library/Caches/node-gyp/20.0.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/satoshishigeta/Desktop/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! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | arm64
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.cc:1:
npm ERR! In file included from ../src/backend/Backend.h:6:
npm ERR! In file included from ../../nan/nan.h:178:
npm ERR! ../../nan/nan_callbacks.h:55:23: error: no member named 'AccessorSignature' in namespace 'v8'
npm ERR! typedef v8::Localv8::AccessorSignature Sig;
npm ERR! ~~~~^
npm ERR! In file included from ../src/backend/Backend.cc:1:
npm ERR! In file included from ../src/backend/Backend.h:6:
npm ERR! ../../nan/nan.h:684:39: warning: 'IdleNotificationDeadline' is deprecated: Use MemoryPressureNotification() to influence the GC schedule. [-Wdeprecated-declarations]
npm ERR! return v8::Isolate::GetCurrent()->IdleNotificationDeadline(
npm ERR! ^
npm ERR! /Users/satoshishigeta/Library/Caches/node-gyp/20.0.0/include/node/v8-isolate.h:1291:3: note: 'IdleNotificationDeadline' has been explicitly marked deprecated here
npm ERR! V8_DEPRECATE_SOON(
npm ERR! ^
npm ERR! /Users/satoshishigeta/Library/Caches/node-gyp/20.0.0/include/node/v8config.h:550:39: note: expanded from macro 'V8_DEPRECATE_SOON'
npm ERR! # define V8_DEPRECATE_SOON(message) [[deprecated(message)]]
npm ERR! ^
npm ERR! In file included from ../src/backend/Backend.cc:1:
npm ERR! In file included from ../src/backend/Backend.h:6:
npm ERR! ../../nan/nan.h:2544:8: error: no matching member function for call to 'SetAccessor'
npm ERR! tpl->SetAccessor(
npm ERR! ~~~~~^~~~~~~~~~~
npm ERR! /Users/satoshishigeta/Library/Caches/node-gyp/20.0.0/include/node/v8-template.h:816:8: note: candidate function not viable: no known conversion from 'imp::Sig' (aka 'int') to 'v8::SideEffectType' for 7th argument
npm ERR! void SetAccessor(
npm ERR! ^
npm ERR! /Users/satoshishigeta/Library/Caches/node-gyp/20.0.0/include/node/v8-template.h:809:8: note: candidate function not viable: no known conversion from 'imp::NativeGetter' (aka 'void ()(v8::Localv8::Name, const v8::PropertyCallbackInfov8::Value &)') to 'v8::AccessorGetterCallback' (aka 'void ()(Localv8::String, const PropertyCallbackInfov8::Value &)') for 2nd argument
npm ERR! void SetAccessor(
npm ERR! ^
npm ERR! In file included from ../src/backend/Backend.cc:1:
npm ERR! ../src/backend/Backend.h:60:14: warning: private field 'backend' is not used [-Wunused-private-field]
npm ERR! Backend* backend;
npm ERR! ^
npm ERR! 2 warnings and 2 errors generated.
npm ERR! make: *** [Release/obj.target/canvas/src/backend/Backend.o] Error 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 (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:511:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Darwin 22.4.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/satoshishigeta/Desktop/hashlips_art_engine-main/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/Users/satoshishigeta/Desktop/hashlips_art_engine-main/node_modules/canvas/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v115"
npm ERR! gyp ERR! cwd /Users/satoshishigeta/Desktop/hashlips_art_engine-main/node_modules/canvas
npm ERR! gyp ERR! node -v v20.0.0
npm ERR! gyp ERR! node-gyp -v v9.3.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/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/satoshishigeta/Desktop/hashlips_art_engine-main/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/satoshishigeta/Desktop/hashlips_art_engine-main/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess. (/Users/satoshishigeta/Desktop/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:511: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:304:5)
npm ERR! node-pre-gyp ERR! System Darwin 22.4.0
npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/satoshishigeta/Desktop/hashlips_art_engine-main/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd /Users/satoshishigeta/Desktop/hashlips_art_engine-main/node_modules/canvas
npm ERR! node-pre-gyp ERR! node -v v20.0.0
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: /Users/satoshishigeta/.npm/_logs/2023-04-28T07_03_48_041Z-debug-0.log
satoshishigeta@Satoshis-MacBook-Pro hashlips_art_engine-main %

@bolshoytoster
Copy link

@GUNZE314532 you could try the suggestions:

symlinked into /opt/homebrew,
because it conflicts with jpeg-turbo.

If you need to have jpeg first in your PATH, run:
echo 'export PATH="/opt/homebrew/opt/jpeg/bin:$PATH"' >> ~/.zshrc

For compilers to find jpeg you may need to set:
export LDFLAGS="-L/opt/homebrew/opt/jpeg/lib"
export CPPFLAGS="-I/opt/homebrew/opt/jpeg/include"

For pkg-config to find jpeg you may need to set:
export PKG_CONFIG_PATH="/opt/homebrew/opt/jpeg/lib/pkgconfig"

(export PATH="/opt/homebrew/opt/jpeg/bin:$PATH", export LDFLAGS="-L/opt/homebrew/opt/jpeg/lib", export CPPFLAGS="-I/opt/homebrew/opt/jpeg/include", export PKG_CONFIG_PATH="/opt/homebrew/opt/jpeg/lib/pkgconfig")

@GUNZE314532
Copy link

Hi, @bolshoytoster Thanks for your many help. How about below?

npm ERR! A complete log of this run can be found in: /Users/satoshishigeta/.npm/_logs/2023-04-28T07_03_48_041Z-debug-0.log
satoshishigeta@Satoshis-MacBook-Pro hashlips_art_engine-main %

  • History restored

satoshishigeta@Satoshis-MBP hashlips_art_engine-main % export PATH="/opt/homebrew/opt/jpeg/bin:$PATH", export LDFLAGS="-L/opt/homebrew/opt/jpeg/lib", export CPPFLAGS="-I/opt/homebrew/opt/jpeg/include", export PKG_CONFIG_PATH="/opt/homebrew/opt/jpeg/lib/pkgconfig"
satoshishigeta@Satoshis-MBP hashlips_art_engine-main % npm
npm

Usage:

npm install install all the dependencies in your project
npm install add the dependency to your project
npm test run this project's tests
npm run run the script named
npm -h quick help on
npm -l display usage info for all commands
npm help search for help on
npm help npm more involved overview

All commands:

access, adduser, audit, bugs, cache, ci, completion,
config, dedupe, deprecate, diff, dist-tag, docs, doctor,
edit, exec, explain, explore, find-dupes, fund, get, help,
help-search, hook, init, install, install-ci-test,
install-test, link, ll, login, logout, ls, org, outdated,
owner, pack, ping, pkg, prefix, profile, prune, publish,
query, rebuild, repo, restart, root, run-script, search,
set, shrinkwrap, star, stars, start, stop, team, test,
token, uninstall, unpublish, unstar, update, version, view,
whoami

Specify configs in the ini-formatted file:
/Users/satoshishigeta/.npmrc
or on the command line via: npm --key=value

More configuration info: npm help config
Configuration fields: npm help 7 config

[email protected] /usr/local/lib/node_modules/npm
satoshishigeta@Satoshis-MBP 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/satoshishigeta/Desktop/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! SOLINK_MODULE(target) Release/canvas-postbuild.node
npm ERR! CXX(target) Release/obj.target/canvas/src/backend/Backend.o
npm ERR! Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/satoshishigeta/Desktop/hashlips_art_engine-main/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/satoshishigeta/Desktop/hashlips_art_engine-main/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (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] | darwin | arm64
npm ERR! node-pre-gyp info check checked for "/Users/satoshishigeta/Desktop/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-v115-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-v115-darwin-unknown-arm64.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v115 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-v115-darwin-unknown-arm64.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | arm64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | arm64
npm ERR! gyp info find Python using Python version 3.9.6 found at "/Library/Developer/CommandLineTools/usr/bin/python3"
npm ERR! gyp http GET https://nodejs.org/download/release/v20.0.0/node-v20.0.0-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v20.0.0/node-v20.0.0-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v20.0.0/SHASUMS256.txt
npm ERR! gyp http 200 https://nodejs.org/download/release/v20.0.0/SHASUMS256.txt
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/satoshishigeta/Desktop/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/satoshishigeta/Library/Caches/node-gyp/20.0.0/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/satoshishigeta/Library/Caches/node-gyp/20.0.0',
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/satoshishigeta/Library/Caches/node-gyp/20.0.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/satoshishigeta/Desktop/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! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | arm64
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ld: warning: directory not found for option '-L/opt/homebrew/opt/jpeg/lib,'
npm ERR! In file included from ../src/backend/Backend.cc:1:
npm ERR! In file included from ../src/backend/Backend.h:6:
npm ERR! In file included from ../../nan/nan.h:178:
npm ERR! ../../nan/nan_callbacks.h:55:23: error: no member named 'AccessorSignature' in namespace 'v8'
npm ERR! typedef v8::Localv8::AccessorSignature Sig;
npm ERR! ~~~~^
npm ERR! In file included from ../src/backend/Backend.cc:1:
npm ERR! In file included from ../src/backend/Backend.h:6:
npm ERR! ../../nan/nan.h:684:39: warning: 'IdleNotificationDeadline' is deprecated: Use MemoryPressureNotification() to influence the GC schedule. [-Wdeprecated-declarations]
npm ERR! return v8::Isolate::GetCurrent()->IdleNotificationDeadline(
npm ERR! ^
npm ERR! /Users/satoshishigeta/Library/Caches/node-gyp/20.0.0/include/node/v8-isolate.h:1291:3: note: 'IdleNotificationDeadline' has been explicitly marked deprecated here
npm ERR! V8_DEPRECATE_SOON(
npm ERR! ^
npm ERR! /Users/satoshishigeta/Library/Caches/node-gyp/20.0.0/include/node/v8config.h:550:39: note: expanded from macro 'V8_DEPRECATE_SOON'
npm ERR! # define V8_DEPRECATE_SOON(message) [[deprecated(message)]]
npm ERR! ^
npm ERR! In file included from ../src/backend/Backend.cc:1:
npm ERR! In file included from ../src/backend/Backend.h:6:
npm ERR! ../../nan/nan.h:2544:8: error: no matching member function for call to 'SetAccessor'
npm ERR! tpl->SetAccessor(
npm ERR! ~~~~~^~~~~~~~~~~
npm ERR! /Users/satoshishigeta/Library/Caches/node-gyp/20.0.0/include/node/v8-template.h:816:8: note: candidate function not viable: no known conversion from 'imp::Sig' (aka 'int') to 'v8::SideEffectType' for 7th argument
npm ERR! void SetAccessor(
npm ERR! ^
npm ERR! /Users/satoshishigeta/Library/Caches/node-gyp/20.0.0/include/node/v8-template.h:809:8: note: candidate function not viable: no known conversion from 'imp::NativeGetter' (aka 'void ()(v8::Localv8::Name, const v8::PropertyCallbackInfov8::Value &)') to 'v8::AccessorGetterCallback' (aka 'void ()(Localv8::String, const PropertyCallbackInfov8::Value &)') for 2nd argument
npm ERR! void SetAccessor(
npm ERR! ^
npm ERR! In file included from ../src/backend/Backend.cc:1:
npm ERR! ../src/backend/Backend.h:60:14: warning: private field 'backend' is not used [-Wunused-private-field]
npm ERR! Backend* backend;
npm ERR! ^
npm ERR! 2 warnings and 2 errors generated.
npm ERR! make: *** [Release/obj.target/canvas/src/backend/Backend.o] Error 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 (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:511:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Darwin 22.4.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/satoshishigeta/Desktop/hashlips_art_engine-main/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/Users/satoshishigeta/Desktop/hashlips_art_engine-main/node_modules/canvas/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v115"
npm ERR! gyp ERR! cwd /Users/satoshishigeta/Desktop/hashlips_art_engine-main/node_modules/canvas
npm ERR! gyp ERR! node -v v20.0.0
npm ERR! gyp ERR! node-gyp -v v9.3.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/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/satoshishigeta/Desktop/hashlips_art_engine-main/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/satoshishigeta/Desktop/hashlips_art_engine-main/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess. (/Users/satoshishigeta/Desktop/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:511: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:304:5)
npm ERR! node-pre-gyp ERR! System Darwin 22.4.0
npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/satoshishigeta/Desktop/hashlips_art_engine-main/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd /Users/satoshishigeta/Desktop/hashlips_art_engine-main/node_modules/canvas
npm ERR! node-pre-gyp ERR! node -v v20.0.0
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: /Users/satoshishigeta/.npm/_logs/2023-04-30T00_01_14_303Z-debug-0.log
satoshishigeta@Satoshis-MBP hashlips_art_engine-main %

@bolshoytoster
Copy link

@GUNZE314532 this comment suggests adding

  "resolutions": {
    "nan": "github:jkleinsc/nan#remove_accessor_signature"
  },

between lines 30-31 in package.json:

@GUNZE314532
Copy link

Hi @bolshoytoster Correct below?

Screenshot 2023-05-02 at 1 45 27 PM

@bolshoytoster
Copy link

@GUNZE314532 try changing the { on line 30 to }.

@GUNZE314532
Copy link

@bolshoytoster Like below??
Screenshot 2023-05-02 at 3 09 10 PM

@bolshoytoster
Copy link

@GUNZE314532 no, change the { at the start of line 30 to a }.

@GUNZE314532
Copy link

@bolshoytoster Like this?
Screenshot 2023-05-02 at 3 50 02 PM

@bolshoytoster
Copy link

@GUNZE314532 yes.

@GUNZE314532
Copy link

@bolshoytoster Then, npm install next?

@bolshoytoster
Copy link

@GUNZE314532 yes.

@GUNZE314532
Copy link

@bolshoytoster It was same error....(⌇ຶД⌇ຶ)

@jonassunandar
Copy link

Hello :) You can fix this issue installing Rosetta terminal to your Visual Studio Code.

  1. Open Visual studio code and press cmd+shift+p
  2. Search and open this file terminal.integrated.profiles.osx
    3)Add this propriety: "terminal.integrated.profiles.osx": { ...., "rosetta": { "path": "arch", "args": ["-x86_64", "zsh", "-l"], "overrideName": true } }

It's 2024 and this is still the solution for me

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