@ dev D:\xampp\htdocs\sports
npm run development
@ development D:\xampp\htdocs\sports cross-env NODE_ENV=development node_modules/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! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ development:
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 @ development script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\Lenovo\AppData\Roaming\npm-cache_logs\2020-09-01T00_56_48_373Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ dev:npm run development
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\Lenovo\AppData\Roaming\npm-cache_logs\2020-09-01T00_56_48_496Z-debug.log
Asked
Active
Viewed 9,022 times
0

halfer
- 19,824
- 17
- 99
- 186

Nihar Shah
- 1
- 1
- 1
-
Does this answer your question? [Laravel 5.4 ‘cross-env’ Is Not Recognized as an Internal or External Command](https://stackoverflow.com/questions/45034581/laravel-5-4-cross-env-is-not-recognized-as-an-internal-or-external-command) – ewokx Sep 01 '20 at 01:14
2 Answers
4
You need install cross-env
globally.
Remove
node_modules
folderRun:
npm install --global cross-env
Remove
cross-env: ^x.y.z
, from yourpackage.json
project file.Run
npm install --no-bin-links
- Run and Test again:
npm run development

btd1337
- 2,616
- 2
- 16
- 25