@vue/cli 4.0 以上 创建新项目时出现的问题记录

Error:

Vue packages version mismatch:

  • [email protected] (/Users/vincentdupont/node_modules/vue/dist/vue.runtime.common.js)
  • [email protected] (/Users/vincentdupont/.nvm/versions/node/v8.9.0/lib/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.

 

重点不在于他给出的建议而是 根目录下不该有 node_modules, 删除即可解决create 失败的问题

你可能感兴趣的:(Vue)