Creating embed app with shopify cli throws an error

Hello,

What i am using is:

npm run shopify app generate extension -- --template admin_action --name issue-tracker-action --flavor react

what I get is:

npm ERR! Missing script: "shopify"
npm ERR! 
npm ERR! To see a list of scripts, run:
npm ERR!   npm run

My shopify cli version:

/cli/3.58.2 darwin-arm64 node-v21.7.2

Literally tried every solution that can be found in google and really dont know what to do anymore.