21 05 2019

    直接上干货,不墨迹  

 1. 安装nodejs

    

            

    

    2.安装vue

npm install -g vue-cli

安装淘宝景象,因为在国内使用npm特别慢

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

3.安装pm2 node进程管理器

cnpm install -g pm2 建立软连接

4。初始化项目

    vue init nuxt/starter yourProject yourProject 项目名称

    项目内容自己写吧-----

编译项目

我直接用的pm2 编译加启动

15.使用pm2启动项目(线程保护型==后台启动)
pm2 start cnpm --name "nuxt" -- run build
6.更改内容后



发表评论