我正在使用Node 12 Alpine运行Docker,并且在尝试更新各种软件包时遇到问题。这个问题是新的,因为Docker成功运行了几个月。
npm install api-contract-validator@1.3.0
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 https://git@github.com/josdejong/jsonlint.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! enoent undefined ls-remote -h -t https://git@github.com/josdejong/jsonlint.git
可能是什么原因? 谢谢。