npm install安装npm ERR! enoent undefined ls-remote -h -t ssh://[email protected]/sohee-lee7/Squire.git

1. Problem

The front-end Xiaobai, the first time to start the vue project is the open source project vue-elementui-admin downloaded from github.
When installing with npm install, undefined ls-remote -h -t ssh://[email protected]/sohee- The error message of lee7/Squire.git
is as shown in the figure:insert image description here

2. Solve:

1. Configure the git environment variable, add your own git installation path to the system environment variable path (my path is: D:\xx\GIT\Git\cmd) 2. Re-install npm install 3. I used npm
install
still To report an error, just use cnpm install (configure Taobao’s mirror npm config set registry https://registry.npm.taobao.org)
insert image description here

Guess you like

Origin blog.csdn.net/weixin_44732379/article/details/116329426