安装 tui-editor 或 ngx-tui-editor 时出错

安装 tui-editor 或 ngx-tui-editor 时出错

我正在尝试安装 toast markdown 编辑器并收到以下错误

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. 安装Git
  2. 在 PATH 环境变量中添加 C:\Program Files\Git\bin C:\Program Files\Git\cmd 的路径。
  3. 重启计算机

运行命令

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

相关内容