Spiral's avatar

'mix' is not recognized as an internal or external command, in laravel 8 new installation

'mix' is not recognized as an internal or external command, in laravel 8 new installation

on npm run dev

$ npm run dev

> @ dev E:\wamp64\www\Laravel8Projects\Laravel_Livewire_JetStream_Projects\jetstream_blog
> npm run development


> @ development E:\wamp64\www\Laravel8Projects\Laravel_Livewire_JetStream_Projects\jetstream_blog
> mix

'mix' 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: `mix`
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\HP\AppData\Roaming\npm-cache\_logs21-01-18T16_22_38_439Z-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\HP\AppData\Roaming\npm-cache\_logs21-01-18T16_22_38_470Z-debug.log
0 likes
3 replies
ankush981's avatar

Do you have latest version of node js and npm

1 like
Spiral's avatar
$ node --version
v10.18.0


$ npm --version
6.13.4
shaungbhone's avatar

rm -rf node_modules

yarn install && npm run dev

2 likes

Please or to participate in this conversation.