简体   繁体   English

在Vuejs中安装npm依赖项错误

[英]npm dependencies installing error in Vuejs

I know how to clone and run git repository but Okuna git repository from Github is cloned successfully and when I install its dependencies.我知道如何克隆和运行 git 存储库,但是当我安装它的依赖项时,Github 中的Okuna git 存储库被成功克隆。 This shows me an error.这向我显示了一个错误。

I just simply install dependencies with the npm install comment.我只是简单地使用npm install注释安装依赖项。

Error is:错误是:

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

First, make sure Git for Windows is in your PATH, as seen here .首先,确保Windows 版 Git位于您的 PATH 中,如下所示

The best practice is to execute npm install from a git bash session, to be sure to be in an environment where Git will be active, even if not directly in your PATH.最佳实践是从git bash会话执行npm install ,确保处于 Git 处于活动状态的环境中,即使不是直接在您的 PATH 中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM