Vue常用命令整理

更新Vue CLI

npm update -g @vue/cli --registry=http://registry.npmmirror.com

向导初始化工程

vue ui

安装xxxx依赖

npm i xxxx -S --registry=http://registry.npmmirror.com

npm install xxxx --save --registry=http://registry.npmmirror.com

安装插件xxxx

npm i xxxx -D --registry=http://registry.npmmirror.com

npm install xxxx –save-dev --registry=http://registry.npmmirror.com

开发环境运行

npm run serve

打包

npm run build
posted @ 2021-01-21 16:46  Bruce.Chang.Lee  阅读(169)  评论(0)    收藏  举报