Giter Club home page Giter Club logo

Comments (12)

benallfree avatar benallfree commented on July 20, 2024 1

Will be fixed in next alpha... for now npx gobot 'pocketbase/pocketbase' works :)

from gobot.

RayyanNafees avatar RayyanNafees commented on July 20, 2024

Still not working on windows:

Getting the following error:

Need to install the following packages:
gobot@1.0.0-alpha.35
Ok to proceed? (y)
Fetching info for pocketbase/pocketbase releases page 1...https://api.github.com/repos/pocketbase/pocketbase/releases?per_page=100&page=1
Fetching info for pocketbase/pocketbase releases page 2...https://api.github.com/repos/pocketbase/pocketbase/releases?per_page=100&page=2
Fetching info for pocketbase/pocketbase releases page 3...https://api.github.com/repos/pocketbase/pocketbase/releases?per_page=100&page=3
Downloading https://github.com/pocketbase/pocketbase/releases/download/v0.22.8/pocketbase_0.22.8_windows_amd64.zip
Downloading.............
Download completed.
Unpacking C:\Users\nafee\AppData\Local\gobot-nodejs\Cache\pocketbase\pocketbase\archives\0.22.8\x64\win32\pocketbase_0.22.8_windows_amd64.zip
Error: Could not find pocketbase.exe anywhere in path C:\Users\nafee\AppData\Local\gobot-nodejs\Cache\pocketbase\pocketbase\archives\0.22.8\x64\win32

Screenshot

image

from gobot.

benallfree avatar benallfree commented on July 20, 2024

Can you show me what's in C:\Users\nafee\AppData\Local\gobot-nodejs\Cache\pocketbase\pocketbase\archives\0.22.8\x64\win32

from gobot.

benallfree avatar benallfree commented on July 20, 2024

Also, try this:

npx gobot@latest reset pocketbase
npx gobot@latest pocketbase --help

from gobot.

VictorioBerra avatar VictorioBerra commented on July 20, 2024

This appears to be the same error as this #4

@benallfree was this fixed?

from gobot.

VictorioBerra avatar VictorioBerra commented on July 20, 2024

See @RayyanNafees last line:

Error: Could not find pocketbase.exe anywhere in path C:\Users\nafee\AppData\Local\gobot-nodejs\Cache\pocketbase\pocketbase\archives\0.22.8\x64\win32

that is the exact same error I get.

from gobot.

benallfree avatar benallfree commented on July 20, 2024

@VictorioBerra Can you please show me the directory listing for C:\Users\nafee\AppData\Local\gobot-nodejs\Cache\pocketbase\pocketbase\archives\0.22.8\x64\win32

from gobot.

VictorioBerra avatar VictorioBerra commented on July 20, 2024

@benallfree that is nafee, mine is:

file:///C:/Users/toryb/source/repos/Failreactor-Pocketbase%20-%20JS/node_modules/gobot/dist/chunk-Y2WPSBSM.js:406
      throw new Error(`Could not find ${this.binName} anywhere in path ${path}`);
            ^

Error: Could not find pocketbase.exe anywhere in path C:\Users\toryb\AppData\Local\gobot-nodejs\Cache\pocketbase\pocketbase\archives\0.22.7\x64\win32
    at _Gobot.findArchiveBinPath (file:///C:/Users/toryb/source/repos/Failreactor-Pocketbase%20-%20JS/node_modules/gobot/dist/chunk-Y2WPSBSM.js:406:13)
    at _Gobot.getBinaryPath (file:///C:/Users/toryb/source/repos/Failreactor-Pocketbase%20-%20JS/node_modules/gobot/dist/chunk-Y2WPSBSM.js:457:34)
    at async _Gobot.run (file:///C:/Users/toryb/source/repos/Failreactor-Pocketbase%20-%20JS/node_modules/gobot/dist/chunk-Y2WPSBSM.js:540:19)

Node.js v20.9.0
[nodemon] app crashed - waiting for file changes before starting...

directory listing

PS C:\Users\toryb\source\repos\Failreactor-Pocketbase - JS> dir C:\Users\toryb\AppData\Local\gobot-nodejs\Cache\pocketbase\pocketbase\archives\0.22.7\x64\win32


    Directory: C:\Users\toryb\AppData\Local\gobot-nodejs\Cache\pocketbase\pocketbase\archives\0.22.7\x64\win32


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----         4/10/2024   1:37 PM              0 CHANGELOG.md
-a----         4/10/2024   1:37 PM           1090 LICENSE.md
-a----         3/29/2024   7:35 PM       41448960 pocketbase.exe
-a----         4/10/2024   1:37 PM       14709671 pocketbase_0.22.7_windows_amd64.zip


PS C:\Users\toryb\source\repos\Failreactor-Pocketbase - JS> 

from gobot.

benallfree avatar benallfree commented on July 20, 2024

Interesting, so it's there but it's not finding it... I'll look into it more

from gobot.

VictorioBerra avatar VictorioBerra commented on July 20, 2024

@benallfree Not sure if this helps, but this works for me:

Change this line https://github.com/benallfree/gobot/blob/main/src/Gobot.ts#L232

const fname2 = globSync(join(path, this.binName), { nodir: true })[0];

(remove the **):

from gobot.

benallfree avatar benallfree commented on July 20, 2024

Interesting, I'm not sure that would search subdirectories if it were missing.

from gobot.

VictorioBerra avatar VictorioBerra commented on July 20, 2024

@benallfree I dont claim for it to be a fix, only to maybe help aid you in debugging.

from gobot.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.