【发布时间】:2020-02-27 17:37:53
【问题描述】:
我尝试运行 npm install 并在下面遇到这些问题
我尝试使用 force 命令清除缓存,安装 git 并更新节点,但没有任何效果
这是错误
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/eligrey/FileSaver.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-11-01T11_56_42_862Z-debug.log
有人可以帮我解决这个问题吗?
【问题讨论】:
-
您好,您使用的 npm install 是什么?根据github存储库,安装应该是: npm install file-saver --save
标签: node.js angular git npm node-modules