- 管理员权限打开windows PowerShell执行以下命令:
PS E:\Project\samer_frontend\widget\app> npm install -g yarn
或
PS E:\Project\samer_frontend\widget\app> yarn config set registry https://registry.npm.taobao.org -g
PS E:\Project\samer_frontend\widget\app> yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
PS E:\Project\samer_frontend\widget\app> yarn global add @vue/cli
PS E:\Project\samer_frontend\widget\app> yarn install
启动自动编译进程:
PS E:\Project\samer_frontend\widget\app> yarn serve
编译release版本:
PS E:\Project\samer_frontend\widget\app> yarn build