JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

Uncaught TypeError: Cannot read properties of undefined (reading ‘install‘)

发布时间 2023-05-22 21:09:13作者: 呵呵啦

 

出现该情况的原因是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 str
  • cdn引入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.properties
  • idea properties文件乱码解决
  • npm install报错的解决方法
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们