使用“npm i curlconverter”安装公共包会导致“致命:无法从远程存储库读取”`

使用“npm i curlconverter”安装公共包会导致“致命:无法从远程存储库读取”`,npm,dockerfile,npm-install,Npm,Dockerfile,Npm Install,github上已经存在这方面的问题,但是建议的解决方案并不能解决问题。我也没有足够的知识来知道这是否是库中的bug $ npm i curlconverter npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/NickCarneiro/yargs-ansi.git npm ERR! npm ERR! git@github.com: Permission denie

github上已经存在这方面的问题,但是建议的解决方案并不能解决问题。我也没有足够的知识来知道这是否是库中的bug

$ npm i curlconverter
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/NickCarneiro/yargs-ansi.git
npm ERR! 
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR! 
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR! 
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2021-05-17T14_07_32_675Z-debug.log
我可以通过安装旧版本在本地安装
curlconverter

npm install --save yargs
npm install --save curlconverter@3.12.0
但是,如果我在Dockerfile中执行此操作,它仍然会出错:

Step 6/9 : RUN npm install --save curlconverter@3.12.0
 ---> Running in 2f5e6c7af7ce
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/NickCarneiro/yargs.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!     /root/.npm/_logs/2021-05-17T14_06_02_821Z-debug.log
The command '/bin/sh -c npm install --save curlconverter@3.12.0' returned a non-zero code: 1
这里有什么问题?有没有安装和使用该软件包的方法