pushkin-consortium / pushkin

A customizable, scalable ecosystem for massive online psychological experiments
https://pushkin-consortium.github.io/pushkin/
MIT License
24 stars 10 forks source link

mutex issues #340

Open jkhartshorne opened 2 months ago

jkhartshorne commented 2 months ago

I'm trying to get the latest version of pushkin-cli to run. It's failing on install site:

`Problem installing dependencies for api Error: Command failed: yarn --mutex network install

at genericNodeError (node:internal/errors:984:15)
at wrappedFn (node:internal/errors:538:14)
at ChildProcess.exithandler (node:child_process:422:12)
at ChildProcess.emit (node:events:519:28)
at maybeClose (node:internal/child_process:1105:16)
at Socket.<anonymous> (node:internal/child_process:457:11)
at Socket.emit (node:events:519:28)
at Pipe.<anonymous> (node:net:337:12) {

code: 1, killed: false, signal: null, cmd: 'yarn --mutex network install', stdout: '\x1B[31m\x1B[1mUnknown Syntax Error\x1B[22m\x1B[39m: Unsupported option name ("--mutex").\n' + `

Note that I had to reinstall yarn because my computer apparently forgot it. Which is strange in its own right...

jkhartshorne commented 2 months ago

Looks like this was an issue with yarn. We are using version 1, but current version is 3. It may be a lot of work to migrate and we might want npm instead, so we're going to put off worrying about this.

jessestorbeck commented 2 months ago

I still occasionally get this error with install site and install experiment. It seems to happen pretty randomly -- maybe it has to do with internet connection? If it happens with site, you can delete everything in the site directory and try again. Usually it will work on a second try. If it happens with experiment, you can use the remove experiment to delete the half-installed experiment.

EDIT: One situation where I haven't experienced this error at all is testing in Codespaces. We have setup instructions here. You can make a Codespace from whatever branch you're working on and create a folder called "testing" (already gitignored) where you put your test site.