[Laravel 8] laravel/ui 설치 후 npm run dev에서 에러 날 때
에러
20 error code ELIFECYCLE
21 error errno 1
22 error @ dev: `npm run development`
22 error Exit status 1
23 error Failed at the @ dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
해결책
cross-env
설치가 필요합니다.
npm install --save-dev cross-env
성공
$ sudo npm run dev
...
✔ Compiled Successfully in 3822ms
┌─────────────────────────────────────────────────────────┬──────────┐
│ File │ Size │
├─────────────────────────────────────────────────────────┼──────────┤
│ /js/app.js │ 2.94 MiB │
│ css/app.css │ 178 KiB │
└─────────────────────────────────────────────────────────┴──────────┘
● Mix █████████████████████████ done (99%)
plugins
webpack compiled successfully
일찍 퇴근하세요.