window基礎環境
1,Git: Git-2.27.0-64-bit
2,JDK: jdk-8u231-windows-x64
3,Node.js :node-v12.8.0-x64
4,python:python-2.7.2.amd64
5,vscode 百度自行安裝
6,VSCode配置Git 請參照熱心網友 https://blog.csdn.net/weixin_40965293/article/details/80319982
敲黑板!!!上面的東西我都給你們打包好了
百度云網盤:https://pan.baidu.com/s/1rU2FPmyL7ru5-HQk4NsFag 提取碼:9ddz
7,Git配置完后,在VSCode中執行以下操作
- 克隆專案: git clone https://github.com/PanJiaChen/vue-element-admin.git
- 進入專案目錄:cd vue-element-admin
- 安裝依賴:npm install --registry=https://registry.npm.taobao.org
- 啟動專案:npm run dev
- 成功照:
- 瀏覽器內輸入:http://localhost:9527/


參照官網:https://panjiachen.github.io/vue-element-admin-site/zh/guide/#%E5%AE%89%E8%A3%85】
注意事項
自己在安裝程序中遇到了各種問題,就把最不好解決的問題記錄下來,給大家參考,希望能幫到你們,
(容易解決的問題百度都可以找的到的)
第一次安裝完成,最后運行【npm run dev】報錯了
vue-element-admin@4.4.0 dev /mnt/d/h5/vue-element-admin
vue-cli-service serve
INFO Starting development server…
98% after emitting CopyPlugin
DONE Compiled successfully in 18824ms 3:47:42 PM
App running at:
Local: http://localhost:9527/
Network: unavailable
Note that the development build is not optimized.
To create a production build, run npm run build.
events.js:287
throw er; // Unhandled ‘error’ event
^
Error: spawn cmd.exe ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at one rrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
Emitted ‘error’ event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)
at one rrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: ‘ENOENT’,
code: ‘ENOENT’,
syscall: ‘spawn cmd.exe’,
path: ‘cmd.exe’,
spawnargs: [ ‘/c’, ‘start’, ‘""’, ‘/b’, ‘http://localhost:9527/’ ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-element-admin@4.4.0 dev: vue-cli-service serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-element-admin@4.4.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-06-24T07_47_42_933Z-debug.log`
參考大佬提供的解決方案:
- 系統環境變數的path中添加C:\windows\system32
- vue.config.js 中 open:true 注釋掉或者 改成false,運行完程式后,不自動啟動瀏覽器,
原文地址:
https://github.com/vuejs/vue-cli/issues/4125
https://github.com/PanJiaChen/vue-element-admin/issues/2311
最后,不怕小白就怕不努力的小白
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/233048.html
標籤:區塊鏈
上一篇:helm安裝
