Error while installing tui-editor or ngx-tui-editor

0

I am trying to install toast markdown editor and getting following error

npm i --save tui-editor
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 ssh://git@github.com/sohee-lee7/Squire.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\Ramesh Kumar\AppData\Roaming\npm-cache\_logs\2019-05-25T04_19_47_296Z-debug.log

My 2019-05-25T04_19_47_296Z-debug.log file debug.log Thanks in advance.

ramesh kumar

Posted 2019-05-25T04:44:46.497

Reputation: 1

Answers

0

I solved my problem by

  1. Install Git
  2. Add path to C:\Program Files\Git\bin C:\Program Files\Git\cmd in PATH environment variable.
  3. Restart the computer

run command

npm i --save tui-editor
npm i --save ngx-tui-editor

ramesh kumar

Posted 2019-05-25T04:44:46.497

Reputation: 1