项目1
克隆问题
git clone https://github.com/xiaoxian521/vue-pure-admin.git
报错fatal: unable to access 'github.com/xiaoxian521…'
解决 https换成git
报错# NPM install 错误 : fatal: unable to connect to github.com
解决
git config --global url."https://".insteadOf git://
运行命令
pnpm install
没安装过,全局安装一下
npm i -g pnpm
解决 yarn或pnpm : 无法加载文件 C:\Users\hp\AppData\Roaming\npm\cnpm.ps1,因为在此系统上禁止运行脚本 左下角开始菜单右边搜索Windows PowerShell,选择以管理员身份运行
输入命令:set-ExecutionPolicy RemoteSigned 然后回车
选择:输入A选择全是,或者输入Y选择是 都可以的
然后pnpm serve就可以了,虽然遇到了一些问题,但是还是不算麻烦
界面真的蛮好看的
项目2
问题: git clone git://github.com/KelvinQiu802/kanban-react.git Cloning into 'kanban-react'... fatal: unable to access 'github.com/KelvinQiu80…': Could not resolve host: github.com
各种解决办法无果,慢慢琢磨吧
重新把git换成https 报错fatal: unable to access 'github.com/KelvinQiu80…': Failed to connect to github.com port 443 after 21013 ms: Timed out 输入
git config --global http.sslVerify “false”
重新克隆完成
安装yarn
npm install -g yarn
输入yarn 输入yarn dev 完成