相关疑难解决方法(0)

如何在Laravel Spark v4.0.9上修复"Vue软件包版本不匹配"错误?

当我npm run dev在Laravel Spark v4.0.9应用程序上运行时,出现以下错误:

Module build failed: Error:

Vue packages version mismatch:

- vue@2.0.8
- vue-template-compiler@2.2.6

This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using vue-loader@>=10.0, simply update vue-template-compiler.
If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.
Run Code Online (Sandbox Code Playgroud)

package.json看起来像这样:

{
  "private": true,
  "scripts": {
    "dev": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules …
Run Code Online (Sandbox Code Playgroud)

vue.js laravel-spark vuejs2

23
推荐指数
10
解决办法
2万
查看次数

标签 统计

laravel-spark ×1

vue.js ×1

vuejs2 ×1