vue 环境问题记录

1.项目初始化报错 npm ERR command git --no-replace-objects ls-remote ssh://git@github-com/nhn/raphael-git

 

这一块的报错 是需要本地生成的SSH keys添加到gitHub里面,可以参照如下链接的博主就弄好了。
https://blog.csdn.net/weixin_44405693/article/details/122175273
2. npm 手动设置源镜像,改不过来 npm config set registry https://registry.npmjs.org/

 解决办法:npm config edit 中找到home= ''把这个去掉就好了

 


posted on 2023-05-18 11:45  朝颜陌  阅读(21)  评论(0编辑  收藏  举报

导航