如果第一次无需执行(如果编译的时候出错再次执行才需要)

1:rm -rf node_modules

更改镜像为淘宝镜像

2:yarn config set registry https://registry.npm.taobao.org

laravel5.8 编译laravel mix

3:SASS_BINARY_SITE=http://npm.taobao.org/mirrors/node-sass yarn

4:删掉 package.json 中的 cross-env 

5:yarn install --no-bin-links

laravel5.8 编译laravel mix

 

6:npm run watch-poll 

在执行第六步的时候如果报

Running: yarn add vue-template-compiler --dev --production=false Running: yarn add vue-template-compiler --dev --production=false(蓝色字体)

执行 yarn add vue-template-compiler --dev --production=false --no-bin-links

然后执行 npm run watch-poll 

下图为最后的执行结果

laravel5.8 编译laravel mix

 

相关文章:

  • 2022-12-23
  • 2021-05-22
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
猜你喜欢
  • 2021-12-24
  • 2021-07-20
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2022-01-04
  • 2022-03-06
相关资源
相似解决方案