服务器版本
代码语言:javascript
复制[root@izuf63g0jydq42k49eo7zcz ~]# uname -a
Linux izuf63g0jydq42k49eo7zcz 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@izuf63g0jydq42k49eo7zcz ~]# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.4.1708 (Core)
Release: 7.4.1708
Codename: Core
[root@izuf63g0jydq42k49eo7zcz ~]# cat /proc/version
Linux version 3.10.0-693.2.2.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Tue Sep 12 22:26:13 UTC 2017
[root@izuf63g0jydq42k49eo7zcz ~]#
安装步骤
更换镜像源
代码语言:javascript
复制npm install -g cnpm --registry=https://registry.npm.taobao.org
安装Vue
代码语言:javascript
复制npm install -g @vue/cli
代码语言:javascript
复制
查看版本
代码语言:javascript
复制vue -V