vue@2.5.2 对等的vue-template-compiler【Vue】

在研究Vue开源项目时,遇到npm run start报错,原因是Vue和vue-template-compiler版本不一致。解决办法是确保两者版本对等,以达到兼容性要求。
摘要由CSDN通过智能技术生成

前置说明:在研究别人的开源项目的时候,本地安装好项目依赖。
运行npm run start ,出现如下

- vue@2.5.2 (D:\IDEA_Work\fulingfront\node_modules\_vue@2.5.2@vue\dist\vue.runtime.common.js)
- vue-template-compiler@2.6.10 (D:\IDEA_Work\fulingfront\node_modules\_vue-template-compiler@2.6.10@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> (D:\IDEA_Work\fulingfront\node_modules\_vue-template-compiler@2.6.10@vue-template-compiler\index.js:10:9)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._loa
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值