0

I know how to clone and run git repository but Okuna git repository from Github is cloned successfully and when I install its dependencies. This shows me an error.

I just simply install dependencies with the npm install comment.

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
Rohit Nishad
  • 2,570
  • 2
  • 22
  • 32

1 Answers1

1

First, make sure Git for Windows is in your PATH, as seen here.

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.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • @RohitNishad So you still have the issue? What is your path when you launch the npm command? Type `set PATH`. – VonC May 03 '20 at 17:41
  • bro, it's my 4 months ago question and I jump into Linux from windows or one more thing it's not very important for me at this time, I am so sorry for wasting your time. – Rohit Nishad May 03 '20 at 19:06
  • 1
    @RohitNishad No problem. I will leave my answer here, in case others have a similar problem to your question. You can leave it as is: it will help others. – VonC May 03 '20 at 19:11