在Docker中更新软件包时出现NPM错误ENOENT

我正在使用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

可能是什么原因? 谢谢。

pqadbc 回答:在Docker中更新软件包时出现NPM错误ENOENT

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3114885.html

大家都在问