我正在尝试安装新模块:
npm install --save react-trello
但是出现此错误:
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/tj/react-click-outside.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
我发现react-click-outside
是依赖于此package.json的模块,但是我无能为力,以此类推。
"dependencies": { ... "react-click-outside": "tj/react-click-outside", ... }
该模块存在,如果尝试可以单独安装
npm install react-click-outside
但是在安装原始软件包时它没有任何作用。
原始lib网站https://github.com/rcdexta/react-trello
我该怎么办?
答案 0 :(得分:0)
正如@Molda在评论中所说,问题是未安装GIT。