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

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

    First run:

    rm -rf node_modules
    rm package-lock.json yarn.lock
    npm cache clear --force
    

    Then run the command

    npm install cross-env
    
    npm install 
    

    and then you can also run

    npm run dev
    

提交回复
热议问题