Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mutex issues #340

Open
jkhartshorne opened this issue Apr 10, 2024 · 2 comments
Open

mutex issues #340

jkhartshorne opened this issue Apr 10, 2024 · 2 comments

Comments

@jkhartshorne
Copy link
Collaborator

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
Copy link
Collaborator Author

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
Copy link
Contributor

jessestorbeck commented Apr 10, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants