songys 发布的文章

npm install vue-router
*npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: boss_demo@1.0.0
npm ERR! Found: vue@2.6.14
npm ERR! node_modules/vue
npm ERR! vue@"^2.5.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue@"^3.2.0" from vue-router@4.0.14
npm ERR! node_modules/vue-router
npm ERR! vue-router@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See D:\Program Files\nodejsCache\node_cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:*

使用 npm install vue-router@3.2.0 -S 即可

  1. 确认此机器没有安装过mysql。
  2. 进入root用户,按照提示输入密码
    su – root
  3. 系统清理
    1)Centos7会自带mysql的分支版本mariadb,需要先将其清除。首先输入命令
    2)rpm -qa |grep -i mariadb

查询是否存在mariadb,如果存在查询结果如图所示
如果存在,采用命令yum remove + 名称清除(如果不存在直接进行下一步)

当运行后出现Complete则运行成功
3)查看是否存在mysql的安装包,如果存在就按上面的方式进行删除。

  1. 解压mysql的压缩包,执行如下命令
    tar –xvzf mysql-5.7.32-1.el7.x86_64.rpm-bundle.tar
  2. 进入解压目录,rpm安装
    rpm -ivh mysql-community-common-5.7.32-1.el7.x86_64.rpm
    rpm -ivh mysql-community-libs-5.7.32-1.el7.x86_64.rpm
    rpm -ivh mysql-community-client-5.7.32-1.el7.x86_64.rpm
    rpm -ivh mysql-community-server-5.7.32-1.el7.x86_64.rpm

注意:
1)必须按顺序安装;

  1. 启动mysql,执行如下命令
    systemctl start mysqld
  2. 设置root密码
    a)查看临时密码,输入如下命令
    grep password /var/log/mysqld.log

临时密码为后面红框框起来的部分
b)重置密码
登陆mysql
mysql –u root –p

输入如下命令重设密码:
set password = password("新密码")
例:set password = password("HaHa@654321");

开启远程访问
grant all privileges on . to root@'%' identified by "123456";
远程访问限定IP,%换为IP
grant all privileges on . to root@'192.168.1.22' identified by "123456";