framework: Unable to run package.json scripts using yarn
- Maizzle Version: 4.0.0
- Node.js Version: 16.5.3
Hi,
As of maizzle 4.0.0 there’s a problem executing package.json scripts that use the maizzle command, IF you’re using yarn instead of npm:
yarn run v1.22.10
$ maizzle build production
env: node\r: No such file or directory
error Command failed with exit code 127.
To reproduce:
- Create a new starter project:
maizzle new - Delete
package-lock.jsonand runyarn install - Run
yarn devoryarn build
Thanks!
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 30 (14 by maintainers)
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…
Can confirm the issue, my reproduction flow:
maizzlewasn’t installed globallynpm.yarn, errors start occurring when runningnpm run dev.yarn.lockand runnpm install.node_modulesand reinstalling withnpm install.Versions:
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!