I am trying to run a npx command on my M1 MacBook but I keep getting the same error. I already installed node.js and npm so that I could run this command:
npx @mondaydotcomorg/monday-cli scaffold run ./ quickstart-react
However, when I run this command the output is:
> Repository was downloaded successfully
> Copying the directory
> Installing packages. It can take a few moments
> Node modules were installed successfully
> Running the project
Error: Command failed: npm run start
at ChildProcess.exithandler (node:child_process:389:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1091:16)
at Socket.<anonymous> (node:internal/child_process:449:11)
at Socket.emit (node:events:513:28)
at Pipe.<anonymous> (node:net:757:14) {
code: 1,
killed: false,
signal: null,
cmd: 'npm run start'
}
Before, I was getting an issue saying sh: concurrently: command not found
and kill-port: command not found
so I installed concurrently and kill-port using npm
, which removed this error messages. However, now I get the output above. I installed node.js
again and updated npm
version to latest version, but no change. Any suggestions on how to fix this?
Edit: I found this link that is a solution to my exact problem. (https://community.monday.com/t/monday-cli-seems-not-to-work-on-apple-m1/36745). I ran npm install kill-port
and ran npm upgrade
and both executed correctly. However, when I try to run npm run start
command by itself, this is my output:
npm ERR! Missing script: "start"
npm ERR!
npm ERR! Did you mean one of these?
npm ERR! npm star # Mark your favorite packages
npm ERR! npm stars # View packages marked as favorites
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/mattspc/.npm/_logs/2022-07-18T21_08_52_459Z-debug-0.log
I think I need to find my destination folder and cd
to it, then run npm run start
within that folder. Any advice on how to locate it?