Vue——服务器上部署vue.js

服务器版本

[root@izuf63g0jydq42k49eo7zcz ~]# uname -a
Linux izuf63g0jydq42k49eo7zcz 3.10.-693.2..el7.x86_64 # SMP Tue Sep :: UTC 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. (Core)
Release: 7.4.
Codename: Core
[root@izuf63g0jydq42k49eo7zcz ~]# cat /proc/version
Linux version 3.10.-693.2..el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8. (Red Hat 4.8.-) (GCC) ) # SMP Tue Sep :: UTC
[root@izuf63g0jydq42k49eo7zcz ~]#

安装步骤

更换镜像源

npm install -g cnpm --registry=https://registry.npm.taobao.org

安装Vue

npm install -g @vue/cli

查看版本

vue -V

Vue——服务器上部署vue.js

上一篇:LeetCode: Longest Consecutive Sequence [128]


下一篇:Android 路由框架ARouter最佳实践