'cross-env' is not recognized as an internal or external command,

后端 未结 4 955
难免孤独
难免孤独 2021-02-01 05:24

Guys can you please help me on this I have trouble run npm run dev for my Laravel Mix. I followed links below but still error exist. Do i have a problem on my OS? I tried to rem

4条回答
  •  孤城傲影
    2021-02-01 05:57

    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
    

提交回复
热议问题