soywiz-archive / jspspemu

typescript psp emulator https://jspspemu.soywiz.com/
https://soywiz.com/
97 stars 34 forks source link

Problem building #13

Closed ethanaobrien closed 3 years ago

ethanaobrien commented 3 years ago

I have downloaded the source and I used cd to get the directory but when I try to run yarn build I get

ERROR: [Errno 2] No such file or directory: 'build'

What do I need to do?

soywiz commented 3 years ago

Looking at the CI: https://github.com/jspspemu/jspspemu/blob/514634c45dbfc639327b99f72c2c47c13100f3c1/.github/workflows/test.yml#L17-L25

It executes:

npm install
yarn build

Can you try to execute npm install first just in case?

ethanaobrien commented 3 years ago

@soywiz It worked... ish. When I ran npm install It gave me a ton of errors but yarn build would work after that. Screenshot 2021-05-04 1 06 45 PM

And from the looks of this it is just because I am using termux. So yes, npm install first made it work (Should this be updated in the readme?) Screenshot 2021-05-04 1 09 27 PM

Should I close this?

soywiz commented 3 years ago

It looks that you are trying to run it on an android device or emulator right? The dependency that is not supported for the android x86 LE target is esbuild: https://github.com/evanw/esbuild Not sure if they will support it, but if you want support for it, you should open an issue there

ethanaobrien commented 3 years ago

@soywiz Thanks! I was actually running it on chrome os so I can just enable and use linux (beta). Ill close this now

ethanaobrien commented 3 years ago

@soywiz

I just tested in linux beta and I did not have to run any yarn commands. I ran

  1. npm install
  2. npm run build
  3. npm run serve

Should this be updated in the readme?

soywiz commented 3 years ago

Yeah, in the end yarn something is like npm run something, I just use it for convenience, but feel free to make a PR with npm run if you believe it reads better :)