【发布时间】:2020-04-02 03:20:03
【问题描述】:
我知道如何克隆和运行 git 存储库,但是来自 Github 的 Okuna git 存储库已成功克隆,并且在我安装其依赖项时。 这向我显示了一个错误。
我只是简单地使用 npm install 注释安装依赖项。
错误是:
C:\Users\username\folder>npm install
npm WARN deprecated @xkeshi/vue-countdown@0.6.0: No longer maintainted, please use @chenfengyuan/vue-countdown
npm WARN deprecated fsevents@1.2.9: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size
npm ERR! path git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn git
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/mattboldt/typed.js.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\username\AppData\Roaming\npm-cache\_logs\2019-12-09T02_53_12_785Z-debug.log
【问题讨论】:
-
这个错误说明了什么?
-
如果您至少不向我们提供具体的错误消息,我们几乎没有机会帮助您。
-
我在 cmd 中尝试了 npm install 命令,但它认为错误两个错误 cd() 从未调用过,第二个错误是 git errort。
-
你的 Git 安装正确了吗?
标签: git vue.js github npm npm-install