halftheopposite / TOSIOS

The Open-Source IO Shooter is an open-source multiplayer game in the browser
MIT License
369 stars 77 forks source link

Why Yarn? Im having an issue where yarn is saying can't find a script named build? #48

Closed btaller closed 2 years ago

btaller commented 2 years ago

I installed yarn via their website and using 3.1.1, very new to it, not sure what im doing wrong, any help please?

Thanks!

/Node/TOSIOS# yarn build Usage Error: Couldn't find a script named "build".

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

btaller commented 2 years ago

Trying to hack it to work now, and seeing this also:

/server/src# npm update npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@tosios%2fcommon - Not found npm ERR! 404 npm ERR! 404 '@tosios/common@0.15.0' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:

LukeWood commented 2 years ago

Check your yarn version it looks like the workspace is not registering

halftheopposite commented 2 years ago

@btaller indeed, this seems like the Yarn workspace is not understood properly. I've updated the project structure and build process and this should normally be fixed with the latest versions of Yarn.

halftheopposite commented 2 years ago

Closing this issue since this is mostly due to an outdated version of yarn.