RealKai42 / qwerty-learner

为键盘工作者设计的单词记忆与英语肌肉记忆锻炼软件 / Words learning and English muscle memory training software designed for keyboard workers
https://qwerty.kaiyi.cool/
GNU General Public License v3.0
15.08k stars 1.38k forks source link

为什么我使用yarn start后自动结束 #799

Open lmliheng opened 1 month ago

lmliheng commented 1 month ago

CMD的内容

C:\Users\liheng\Desktop\code\vite\qwerty-learner-master>yarn install
yarn install v1.22.21
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
success Already up-to-date.
$ husky install
husky - git command not found, skipping install
Done in 0.29s.

C:\Users\liheng\Desktop\code\vite\qwerty-learner-master>yarn start
yarn run v1.22.21
$ vite
Done in 0.93s.

C:\Users\李恒\Desktop\code\vite\qwerty-learner-master>
RealKai42 commented 1 month ago

husky - git command not found, skipping install

需要安装 git,并且不要下载这个项目,而是使用 git clone 这个项目

lmliheng commented 1 month ago

husky - git command not found, skipping install

需要安装 git,并且不要下载这个项目,而是使用 git clone 这个项目

👍 好的,了解了哈哈,感谢博主百忙之中的回答👍 看来我到现在都没发现git clone和直接下载的区别

luojiyin1987 commented 1 month ago

你可以查查 husky 的作用, 按照 husky 配置有一个 pre-commit 的相关配置, 它需要安装 git。