Legacy Dev Forum Posts

 View Only

Sign Up

Archy on Mac M3max Ventura OS

  • 1.  Archy on Mac M3max Ventura OS

    Posted 06-05-2025 19:25

    cbhenderson | 2023-12-18 15:11:02 UTC | #1

    I am moving to a new M3 max based MacBook Pro. I've tried installing archy and am getting the following message when running 'archy version':

    pkg/prelude/bootstrap.js:1872 throw error; ^

    SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at new Env (/snapshot/architect-archy/src/utilities/env.js) at Object.<anonymous> (/snapshot/architect-archy/src/utilities/env.js) at Module.compile (pkg/prelude/bootstrap.js:1926:22) at Module.extensions..js (node:internal/modules/cjs/loader:1166:10) at Module.load (node:internal/modules/cjs/loader:988:32) at Module._load (node:internal/modules/cjs/loader:834:12) at Module.require (node:internal/modules/cjs/loader:1012:19) at Module.require (pkg/prelude/bootstrap.js:1851:31) at require (node:internal/modules/cjs/helpers:102:18)

    The same setup works on my old MacBook Pro M1. Any suggestions to resolve? Thank you in advance!


    jon.vansteen | 2023-12-18 17:56:38 UTC | #2

    Hi @cbhenderson,

    Does it happen if you redownload the latest version from https://sdk-cdn.mypurecloud.com/archy/latest/archy-macos.zip and unzip?

    Thanks, Jon


    cbhenderson | 2023-12-18 19:45:08 UTC | #3

    Hi Jon, thanks for your reply. I got the same result. Download -> unzip -> try to run, get the macos "can't verify the publisher" message -> settings "allow anyway" -> rerun -> the the dialog -> select open -> few second delay -> ./archy version ./archy: line 11: 9658 Killed: 9 "./archyBin/archy-macos-2.25.0" "$@"

    ./archy version pkg/prelude/bootstrap.js:1872 throw error; ^

    SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at new Env (/snapshot/architect-archy/src/utilities/env.js) at Object.<anonymous> (/snapshot/architect-archy/src/utilities/env.js) at Module.compile (pkg/prelude/bootstrap.js:1926:22) at Module.extensions..js (node:internal/modules/cjs/loader:1166:10) at Module.load (node:internal/modules/cjs/loader:988:32) at Module._load (node:internal/modules/cjs/loader:834:12) at Module.require (node:internal/modules/cjs/loader:1012:19) at Module.require (pkg/prelude/bootstrap.js:1851:31) at require (node:internal/modules/cjs/helpers:102:18)

    Node.js v18.5.0

    The very strange thing is the exact same setup runs on a MacBook Pro M1 Apple silicon machine. Please let me know if I can provide any other information


    jon.vansteen | 2023-12-18 19:57:22 UTC | #4

    @cbhenderson thanks for trying again. I'm also on an M1 macbook pro on Ventura and not seeing this issue either.

    I dont think this will change anything, but just curious anyways. Could you try running these commands in your terminal to download Archy, unzip, and then run Archy?

    curl https://sdk-cdn.mypurecloud.com/archy/latest/archy-macos.zip --output archy-macos.zip
    unzip archy-macos.zip
    ./archy version

    I did notice when downloading via curl I wasnt prompted with the "cant verify publisher" message and maybe somehow thats messing it up? (highly doubt it though)

    Another thing I'm curious if you could try is to download an older release manually and try to run it. The previous version to 2.25.0 is found here - https://sdk-cdn.mypurecloud.com/archy/2.24.1/archy-macos.zip

    Let me know! I'll keep looking into this in the meantime.

    Thanks, Jon


    cbhenderson | 2023-12-18 20:35:04 UTC | #5

    Thank you, Jon! I'll try your suggestions shortly. My M1 MacBook runs archy without any issues. My new MacBook Pro is an M3 Max processor (just got it a few weeks ago) and it is the one that is spitting out the odd errors (even though it is setup exactly like the M1). I'll report back on your suggestions shortly. Thanks again


    cbhenderson | 2023-12-18 21:01:46 UTC | #6

    Ran your suggestions. I did notice the following:

    Note that it says "Chrome downloaded this file at 12:36" but I ran curl about 1:30 - just seemed odd to me. Anyway the exact same responses came from this test. I'm wondering if the M3 Max has some kind of security settings that are causing the error?

    --craig


    jon.vansteen | 2023-12-18 21:08:03 UTC | #7

    @cbhenderson thanks for trying that out. I've come up with another thing to try. In your terminal, could you

    run rm ~/.archy_config

    I have a suspicion that the config file for Archy has somehow not been created correctly. After deleting it, then try running archy version again.

    Thanks, Jon


    cbhenderson | 2023-12-18 21:16:01 UTC | #8

    SUCCESS!! Thank you so very much for all your time. Can the .archy_config file be removed at anytime and it will be recreated at the next archy execution?

    Have a great holiday season!! --craig


    jon.vansteen | 2023-12-18 21:19:08 UTC | #9

    @cbhenderson Awesome! Glad to have finally figured it out. And yep, if it gets deleted it will be recreated without any of the settings configured (i.e. location / clientId / clientSecret). So you can just run the setup command to repopulate those configuration values.

    Have a great holiday season yourself!

    \- Jon


    system | 2024-01-18 21:19:13 UTC | #10

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 23762