请有人指导我修复此错误
$ aws-azure-login --mode gui --profile eks-teamleader --no-disable-extensions --no-verify-ssl
error: unknown option '--no-disable-extensions '
$ aws-azure-login --mode gui --profile eks-teamleader --no-verify-ssl
Logging in with profile 'eks-8803-teamleader'...
Using AWS SAML endpoint https://signin.aws.amazon.com/saml
Error: Could not find expected browser (chrome) locally. Run `npm install` to download the correct Chromium revision (901912).
at ChromeLauncher.launch (/usr/local/lib/node_modules/aws-azure-login/node_modules/puppeteer/lib/cjs/puppeteer/node/Launcher.js:88:27)
at PuppeteerNode.launch (/usr/local/lib/node_modules/aws-azure-login/node_modules/puppeteer/lib/cjs/puppeteer/node/Puppeteer.js:125:31)
at Object._performLoginAsync (/usr/local/lib/node_modules/aws-azure-login/lib/login.js:461:49)
at async Object.loginAsync (/usr/local/lib/node_modules/aws-azure-login/lib/login.js:324:30)
此外,我甚至尝试过:
/usr/local/lib/node_modules/aws-azure-login/node_modules/puppeteer $ npm install
npm WARN deprecated standard-version@9.3.0: standard-version is deprecated. If you're a GitHub user, I recommend https://github.com/googleapis/release-please as an alternative.
> puppeteer@10.4.0 install
> node install.js
ERROR: Failed to set up Chromium r901912! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
Error: self signed certificate in certificate chain
at TLSSocket.onConnectSecure (node:_tls_wrap:1538:34)
at TLSSocket.emit (node:events:513:28)
at TLSSocket._finishInit (node:_tls_wrap:952:8)
at ssl.onhandshakedone (node:_tls_wrap:733:12) {
code: 'SELF_SIGNED_CERT_IN_CHAIN'
}
npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/aws-azure-login/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c -- node install.js
注:
1.我曾尝试在MacOs(MacBook Pro(2019英特尔酷睿))中手动安装 chrome ,但仍然出现相同的错误
1.已使用npm install -g aws-azure-login
安装aws-azure-login
1条答案
按热度按时间nhaq1z211#
看起来你的选项后面有个隐形角色
而不是:
尝试重写命令,因为此选项实际存在:)