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

Does this work with npm? #97

Open
reintroducing opened this issue May 13, 2021 · 5 comments
Open

Does this work with npm? #97

reintroducing opened this issue May 13, 2021 · 5 comments

Comments

@reintroducing
Copy link

Hello,
We don't use yarn, rather npm, and for the most part this works. However, at times when I run manypkg fix, I get the following:

> manypkg fix

☔️ error Error: spawn yarn ENOENT
☔️ error     at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
☔️ error     at onErrorNT (node:internal/child_process:480:16)
☔️ error     at processTicksAndRejections (node:internal/process/task_queues:83:21) {
☔️ error   errno: -2,
☔️ error   code: 'ENOENT',
☔️ error   syscall: 'spawn yarn',
☔️ error   path: 'yarn',
☔️ error   spawnargs: []
☔️ error }

It seems that under the hood this wants to use yarn but since I don't have it installed its erroring. Is it possible to get away from this?

@flybayer
Copy link

flybayer commented Dec 6, 2021

Yeah this is a unexpected problem.

Workaround is to manually fix things, which defeats the purpose of manypkg fix

@steve-taylor
Copy link
Contributor

NPM was a bit late to the monorepo party, so understandably it's currently unsupported. I hope this changes soon.

@tomdavidson
Copy link

Would a PR using something like yarpm or preferred-pm be welcomed?

@BenJackGill
Copy link

BenJackGill commented Mar 14, 2023

+1 for this.

I am having the same problems.

npm support would be welcome.

@Andarist
Copy link
Collaborator

It would be great if somebody could locate where the error is coming from. This is likely an easy fix.

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

6 participants