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:
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)