Laravel cnpm run dev 时出现 mix 的错误
新创建的 Laravel 8 工程,安装了 node js
,运行 cnpm run dev
的时候出现异常"laravel-mix": "^6.0.10"
PS D:\laravel-sites\hub4> cnpm run dev
> @ dev D:\laravel-sites\hub4
> npm run development
> @ development D:\laravel-sites\hub4
> mix
'cross-env' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
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\DEVELOPER\AppData\Roaming\npm-cache\_logs\2021-01-21T07_13_03_321Z-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\DEVELOPER\AppData\Roaming\npm-cache\_logs\2021-01-21T07_13_03_342Z-debug.log
推荐文章: