This may cause things to work incorrectly. Make sure to use the same version for both.

当我们安装依赖(npm install)后一直报错,会发现是因为vue 和 vue-template-complier版本不统一,只需要卸载其中一个(带着版本号),然后重新安装另外一个版本号的皆可解决。

比如:

[email protected]

[email protected]

解决办法一:

npm uninstall [email protected]
             
npm install [email protected]

解决办法二:

npm uninstall [email protected]
             
npm install [email protected]

不过更加推荐办法一的,如果其他项目的vue版本号不统一了就又是麻烦!

猜你喜欢

转载自blog.csdn.net/XU441520/article/details/131195779