文檔鏈接:開始 | vue-element-plus-admin
之前嘗試按照官方文檔來安裝,運行npm run dev命令卻不能正常打開訪問瀏覽器,換一個方式
首先在目錄下打開命令窗口
1、克隆項目
從 GitHub 獲取代碼
# clone 代碼
git clone https://github.com/kailong321200875/vue-element-plus-admin.git
從 Gitee 獲取代碼(推薦)
git clone https://gitee.com/kailong110120130/vue-element-plus-admin.git
2、 進入項目目錄
cd vue-element-admin
3、 安裝依賴
npm install
以通過如下操作解決 npm 下載速度慢的問題
npm install --registry=https://registry.npm.taobao.org
# 啟動項目
?
npm run dev
登錄賬號密碼默認admin