laravel5.8 编译laravel mix

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

1:rm -rf node_modules

更改镜像为淘宝镜像

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

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

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

5:yarn install --no-bin-links

 

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 

下图为最后的执行结果

 

posted on 2019-10-14 10:48  paulversion  阅读(229)  评论(0编辑  收藏  举报