出现该情况的原因是vue-router安装的版本太高,一般vue2的项目对应的版本是vue-router@3版本 ①在控制台输入: cnpm install --save vue-router@3.5.3 重新安装vue-router即可解决本栏目推荐文章MIUI EU ROM install and upgrade安装npm install报错npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! network request to https://registry.npmjs.org/webpack-subresource-integrity failed, reason解决TypeError: string indices must be integers, not strcdn引入vue后报错无法识路径 Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../".Attribute 和 Property 的区别"mysql : 无法将“mysql”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。"错误以及"Can't connect to MySQL server on 'localhost' (10061) after Installation"错误解决办法RHCL8无法使用yum install的解决方法简单地配置MySQL数据库application.propertiesidea properties文件乱码解决npm install报错的解决方法