用vue-cli 3 初始化项目失败,怎么解决
发布于 3 年前 作者 feer 1377 次浏览 来自 问答
粉丝福利 : 关注VUE中文社区公众号,回复视频领取粉丝福利

vue create bi-ssr
C:\Users\Administrator\AppData\Roaming\npm\node_modules@vue\cli\node_modules\vue-template-compiler\index.js:10
throw new Error(
^

Error:

Vue packages version mismatch:

  • vue@2.5.21 (C:\Users\Administrator\AppData\Roaming\npm\node_modules\vue\dist\vue.runtime.common.js)
  • vue-template-compiler@2.6.10 (C:\Users\Administrator\AppData\Roaming\npm\node_modules@vue\cli\node_modules\vue-template-compiler\package.json)

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> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\vue-template-compiler\index.js:10:9)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\vue-jscodeshift-adapter\src\parse-sfc.js:1:80)
at Module._compile (internal/modules/cjs/loader.js:701:30)
回到顶部