'mix' is not recognized as an internal or external command code example

Example 1: 'mix' is not recognized as an internal or external command, operable program or batch file.

npm install laravel-mix@latest --save-dev

Example 2: 'gh-pages' is not recognized as an internal or external command

npm install gh-pages

to deploy

add this to package.json

"predeploy": "npm run build",

"deploy": "gh-pages -d build"

and then this

npm run deploy

Example 3: 'mix' is not recognized as an internal or external command

npm install laravel-mix@latest --save-dev

Example 4: 'python' is not recognized as an internal or external command

Did you add python to PATH when you downloaded it?
If not, redownload it and make sure you tick the box that says 'add Python to PATH'.