我尝试自定义AWS API Gateway Developer Portal的React前端,但在安装依赖项时,生成了以下错误。
npm ERR! npm ERR! code 128
npm ERR! npm ERR! An unknown git error occurred
npm ERR! npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/ev1stensberg/generator.git
npm ERR! npm ERR! command-line line 0: unsupported option "accept-new".
npm ERR! npm ERR! fatal: Could not read from remote repository.
npm ERR! npm ERR!
npm ERR! npm ERR! Please make sure you have the correct access rights
npm ERR! npm ERR! and the repository exists.
我认为问题发生在安装“swagger-ui”的时候。
我尝试了下面的命令,并尝试手动安装“swagger-ui”。但我得到了同样的错误。
npm安装swagger-ui@github:awslots/swagger-ui#apigw-fork-v4
npm ERR! npm ERR! code 128
npm ERR! npm ERR! An unknown git error occurred
npm ERR! npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/ev1stensberg/generator.git
npm ERR! npm ERR! command-line line 0: unsupported option "accept-new".
npm ERR! npm ERR! fatal: Could not read from remote repository.
npm ERR! npm ERR!
npm ERR! npm ERR! Please make sure you have the correct access rights
npm ERR! npm ERR! and the repository exists.
后来我尝试通过npm安装不同版本的“swagger-ui”,但是这些版本与dev-portal前端不兼容。
是否有人可以通过减少这种依赖性错误来定制AWS开发门户前端?
1条答案
按热度按时间x6h2sr281#
尝试在package.json中添加依赖项,如下所示
你也可以像这样手工安装