tui-editor または ngx-tui-editor のインストール中にエラーが発生しました

tui-editor または ngx-tui-editor のインストール中にエラーが発生しました

トーストマークダウンエディターをインストールしようとしていますが、次のエラーが発生します

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://[email protected]/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

私の 2019-05-25T04_19_47_296Z-debug.log ファイルデバッグログ 前もって感謝します。

答え1

私は問題を解決しました

  1. インストールギット
  2. PATH 環境変数に C:\Program Files\Git\bin C:\Program Files\Git\cmd へのパスを追加します。
  3. コンピュータを再起動します

コマンドを実行

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

関連情報