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:

  1. Create a new starter project: maizzle new
  2. Delete package-lock.json and run yarn install
  3. Run yarn dev or yarn build

Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 30 (14 by maintainers)

Most upvoted comments

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:

  • maizzle wasn’t installed globally
  • Followed the getting started guide, everything works as expected using npm.
  • Once I install packages with yarn, errors start occurring when running npm run dev.
  • Errors don’t go away even if I delete yarn.lock and run npm install.
  • Only thing that fixes it is deleting node_modules and reinstalling with npm install.

Versions:

  • yarn 1.22.19
  • npm 8.5.5
  • node 16.15.0

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!