Laravel 5.4 ‘cross-env’ Is Not Recognized as an Internal or External Command

前端 未结 16 1102
被撕碎了的回忆
被撕碎了的回忆 2020-11-29 17:04

I\'m trying to run npm run dev for Laravel Mix and I get this error:

> @ dev D:\\projects\\ptcs
> cross-env NODE_ENV=development webpack -         


        
16条回答
  •  醉梦人生
    2020-11-29 17:48

    Your error states that cross-env is not installed.

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

    You just need to run

    npm install cross-env
    

提交回复
热议问题