Stability-AI / StableStudio

Community interface for generative AI
MIT License
8.57k stars 847 forks source link

Stable Studio - yarn dev script missing? #91

Closed kdwoell closed 1 year ago

kdwoell commented 1 year ago

Describe the bug Following steps in Quick Start guide produces Yarn dev script missing/not found error. Confirmed Stable Studio not running at localhost:3000

To Reproduce Steps to reproduce the behavior:

  1. Open command terminal

  2. cd to Stable Studio directory in Home directory

  3. Set active version of NVM

    :~/StableStudio$ nvm use v20.3.1 Now using node v20.3.1 (npm v9.6.7)

  4. enter Yarn

    :~/StableStudio$ yarn ➤ YN0000: ┌ Resolution step ➤ YN0000: └ Completed ➤ YN0000: ┌ Fetch step ➤ YN0000: └ Completed ➤ YN0000: ┌ Link step ➤ YN0000: └ Completed ➤ YN0000: Done in 0s 45ms :~/StableStudio$ yarn dev Usage Error: Couldn't find a script named "dev".

$ yarn run [--inspect] [--inspect-brk] [-T,--top-level] [-B,--binaries-only] ...

:~/StableStudio$

  1. enter

Expected behavior Expected no error msg

Screenshots extract of command terminal session above.

Desktop (please complete the following information):

Additional context Followed instructions in the Quick Start. Installed Node using NVM. Installed Yarn using corepackage.

Tzahile commented 1 year ago

I've just installed (arch linux) a fresh project locally, and yarn dev worked as expected. Check the package.json and see if there's dev.

image

kdwoell commented 1 year ago

Hmm. I looked at the package.json file in a text editor. See below. No entry for a dev. I assume that's what you meant?

{ "name": "StableStudio", "packageManager": "yarn@3.6.0" }

kdwoell commented 1 year ago

Apparently Yarn was not configured properly based on inspection of the package.json file. Re-installed Yarn. Then deleted the /StableStudio directory. Then followed the quick start guide. StableStudio was accessible from localhost:3000 in a browser.

Tzahile commented 1 year ago

If your problem is resolved, consider closing the issue. I'm glad you managed :)

kdwoell commented 1 year ago

Resolved. apologies for not closing this issue.