-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Unable to run package.json scripts using yarn #703
Comments
Sounds like a yarn problem, have you tried doing |
Not sure what you mean with this. I'm using |
I meant to say yarn may be caching some stuff, not really sure since I don't use it. There's nothing special that we do for npm and since yarn uses npm there must be something that we'd need to do for it instead, just don't know what 🤔 |
I've tried deleting node_modules, running |
+1 Having the same issue with serving via yarn and npm
|
Also, do you have the Maizzle CLI installed globally? Just tested on a Mac that didn't have anything Maizzle-related installed and both scripts are working as expected. |
Think I may found the issue, but will need your help to confirm. Can you please open For example, in VS Code it shows it in the bottom status bar, on the right side: Then try running That's the executable used when running the npm scripts, and I see it had |
Just tried this and changing to LF does get me past the error I was seeing! However now I get |
OK, we're getting there :) You don't need |
Tried this but it hasn't helped unfortunately. Have uninstalled maizzle globally, deleted node modules, cleared the yarn cache, and installed again. Can only get the commands to work by replacing |
Have you also removed |
Yeah I removed yarn.lock as well as node_modules |
Hmm no other ideas for now, except to blame yarn 🙈 Need to check this with more users to ensure it's not some strange edge case and find out what's causing it... |
@jebax what npm version are you using? Could you try updating to latest with Not sure if it can also be caused by nvm and the way it adds executables to $PATH 🤔 EDIT: just had someone help test it on a macOS machine that didn't even had Node - installed the LTS, then followed the installation docs and |
Getting the same issue using a yarn-based turborepo monorepo on Linux. Let me know if there is any info I can provide to help debug this! |
tried upgrading to the latest npm but didn't help, still get RE: your comment about someone trying with a fresh install - do you mean |
Can confirm the issue, my reproduction flow:
Versions:
|
I am seeing the same issue after upgrading to 4.0.0.
I also tried deleting node_modules, it didn't work. |
Hmm, I wonder if this is also an issue with yarn 2 - I see everyone reporting it is running v1.x |
OK so I just gave yarn I then removed |
this works for me, however the problem is that I want to manage my dependencies with |
Yeah, not sure what we can do about that, I kinda doubt it's because of that require, as it's actually complaining about not being able to find the bin (which is definitely there, and yarn itself can find it if you run I'll leave this open for now in case anyone comes up with a solution 👍 |
Using npm worked for me. I am on Mac, Node 14, npm 6.
For some reason the |
Same problem here. After installing with yarn there is an error running
Even adding Also tried |
One possible reason is that in |
Released |
Works! ❤️ |
works! thanks 🙏 |
Cool, thanks for confirming 👍 |
Hi,
As of maizzle 4.0.0 there's a problem executing package.json scripts that use the
maizzle
command, IF you're usingyarn
instead ofnpm
:To reproduce:
maizzle new
package-lock.json
and runyarn install
yarn dev
oryarn build
Thanks!
The text was updated successfully, but these errors were encountered: