MIX: 'cross-env' is not recognized as an internal or external command, operable program or batch file.

Posted 2 years ago by Filip_Zdravkovic

Did you get the following error when trying to run Mix tasks?

npm run dev

> @ dev C:\xampp\htdocs\test\test
> cross-env NODE_ENV=development node_mo
dules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

'cross-env' is not recognized as an internal or external command,
operable program or batch file.

...

npm ERR! node v7.5.0
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! @ dev: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ dev script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup                 /webpack.config.js'.

I'm using Laravel 5.4.16 (WINDOWS).

Please sign in or create an account to participate in this conversation.