这是错误消息:
Vue packages version mismatch:
- vue@2.5.2
- vue-template-compiler@2.5.13
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.
at Object.<anonymous> (/Users/me/test-dev/vue-test/node_modules/vue-template-compiler/index.js:8:9)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/me/test-dev/vue-test/node_modules/vue-loader/lib/parser.js:1:80)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
@ ./src/router/index.js 4:0-38
@ ./src/index.js
@ multi ./build/dev-client ./src/index.js
> Listening at http://localhost:8080
我尝试了两个建议:更新并重新安装。似乎都没有帮助。
这是我设置工作演示的代码框的链接。我从代码沙箱下载了示例作为一个包(请参阅第一个链接上的下载按钮),然后在npm install
本地运行(Mac OS X Sierra)。
密码沙盒: https ://codesandbox.io/s/1rxq4j1on3