Npm run dev - Command "start" not found

I created a custom node a week or 2 ago and had it working fine. However, now when I try to run “npm run dev” I get the following:

% npm run dev
[email protected] dev
n8n-node dev
n8n-node dev v0.16.0
TypeScript Build (watching)
[10:44:43 AM] Starting compilation in watch mode…
[10:44:44 AM] Found 0 errors. Watching for file changes.
n8n Server
Error: Command “start” not found
Shutting down gracefully… Press Ctrl+C again to force quit.
Command “n8n Server” exited with code 1.

I tried creating a new custom node with “npm create @n8n/node@latest” but when I run npm run dev in that new custom node I get the same error.

I am running this on a mac laptop. I can follow the same steps on an ubuntu 24.04 laptop and it works fine, but I need it to work on my mac laptop.

Try updating all modules with npm i. If the issue persists, try updating npm to the latest version.

I updated all modules with npm i but the issues still persists. My npm version is 11.6.2 on both laptops. On the mac I installed npm using brew, and it is the latest version available in brew.