报错总结
ZGuangJu 5/15/2020 报错总结
# git 报错
# git clone 时的错误
- 解决方法一
git终端中输入
git config --global --unset http.proxy
git config --global --unset https.proxy
解决方法二
将 https
改为 git
例如
git clone https://github.com/PanJiaChen/vue-admin-template.git
// 更改为
git clone git://github.com/PanJiaChen/vue-admin-template.git
# npm 报错
# npx报错
原因
node_cache
所在的文件路径包含空格。
如我的node_cache
是这样的路径:D:\Program Files\node\node_cache
,node_cache
的路径中Program Files
有一个空格。这应该算是npx
的一个bug
吧