laravel 使用 mix的时候 执行 npm run watch/dev/production 的时候报错,关键的错误内容如下:
[...]
Running: yarn add vue-template-compiler --dev --production=false
ERROR: add is not COMMAND nor fully qualified CLASSNAME. when npm run 
[...]其实这是因为缺少了yarn导致的,我们只需要安装yarn即可
npm run install yarn后面还可能遇到:
Additional dependencies must be installed. This will only take a moment. 
Running: yarn add vue-template-compiler --dev --production=false执行下面语句安装vue-template-compiler
npm install vue-template-compiler安装后再运行npm run watch/dev/production就没问题了