okuna是开源网站 Github url of source code
我认为这是我尝试使用C:\Users\<username>\<folder>\okuna-www-master (2)\okuna-www-master>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\sushil kumar\AppData\Roaming\npm-cache\_logs\2019-12-09T02_53_12_785Z-debug.log
C:\Users\<username>\<folder>\okuna-www-master (2)\okuna-www-master>
的vue项目,但是会引发错误。
错误是:
{{1}}
答案 0 :(得分:1)
首先,确保Git for Windows像seen here一样位于您的PATH中。
最佳实践是从npm install
会话执行git bash
,以确保处于活跃状态的Git环境,即使不是直接在PATH中也是如此。