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

前端 未结 16 1118
被撕碎了的回忆
被撕碎了的回忆 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:42

    Delete the node_modules folder

    Then you should run the commands:

    npm install --no-bin-links
    
    npm run dev
    

    It's worked on my Laravel 5.5 and Windows.

提交回复
热议问题