Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Running two instances of yarn causing issues? #108

@jodeleeuw

Description

@jodeleeuw

On a clean install of pushkin, attempting to run pushkin install site I get this kind of error:

image

I think this is fixable by just running the command again, but I suspect the root cause of this is that pushkin-cli is trying to run multiple parallel instances of yarn when it builds the api and front-end as async events.

const apiPromise = promiseFolderInit(path.join(initDir, 'pushkin'), 'api').catch((err) => { console.error(err); });
const frontendPromise = promiseFolderInit(path.join(initDir, 'pushkin'), 'front-end').catch((err) => { console.error(err); });

Before I make a PR on this, I just wanted to see if I'm missing anything. Clearly there was some deliberate choice to make all of the fs operations async in this part of the code, so I'm wondering if there's a reason to not await the completion of each of those before moving on to the next.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions