firefox Error downloading

本文介绍了解决Firefox浏览器在下载插件时出现Errordownloading错误的方法。通过修改Linux或Windows系统的hosts文件,添加特定的IP地址和域名对应项,可以有效避免此问题。

做过互联网开发的都知道,firefox是我们互联网开发必备浏览器之一,浏览器是载体,一些小插件更是我们的最爱,比如firebug等等,但是下载这些插件时总是遇到Error downloading的错误,怎么处理呢,只需要修改一下host就行了。

linux下:

在/etc/hosts文件中,添加一行,117.18.237.29 ocsp.digicert.com

windows下,由于自己用的是linux,没法找windows的路径,自行百度吧,也是加一行,117.18.237.29 ocsp.digicert.com

$ npm ci npm warn deprecated lex@1.7.9: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm warn deprecated domexception@4.0.0: Use your platform's native DOMException instead npm warn deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead npm error code 1 npm error path /builds/meihua_webserver/ai-group/cx-aigc-drawing-web/ComfyUI_frontend/node_modules/@playwright/browser-webkit npm error command failed npm error command sh -c node install.js npm error Downloading Webkit 18.4 (playwright build v2158) from https://cdn.playwright.dev/dbazure/download/playwright/builds/webkit/2158/webkit-debian-12.zip npm error Downloading Webkit 18.4 (playwright build v2158) from https://playwright.download.prss.microsoft.com/dbazure/download/playwright/builds/webkit/2158/webkit-debian-12.zip npm error Downloading Webkit 18.4 (playwright build v2158) from https://cdn.playwright.dev/builds/webkit/2158/webkit-debian-12.zip npm error Downloading Webkit 18.4 (playwright build v2158) from https://cdn.playwright.dev/dbazure/download/playwright/builds/webkit/2158/webkit-debian-12.zip npm error Downloading Webkit 18.4 (playwright build v2158) from https://playwright.download.prss.microsoft.com/dbazure/download/playwright/builds/webkit/2158/webkit-debian-12.zip npm error Error: getaddrinfo EAI_AGAIN playwright.download.prss.microsoft.com npm error at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:internal/dns/promises:95:17) { npm error errno: -3001, npm error code: 'EAI_AGAIN', npm error syscall: 'getaddrinfo', npm error hostname: 'playwright.download.prss.microsoft.com' npm error } npm error Error: getaddrinfo EAI_AGAIN playwright.download.prss.microsoft.com npm error at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:internal/dns/promises:95:17) { npm error errno: -3001, npm error code: 'EAI_AGAIN', npm error syscall: 'getaddrinfo', npm error hostname: 'playwright.download.prss.microsoft.com' npm error }
08-27
npm init playwright@latest --yes "--" . '--quiet' '--browser=chromium' '--browser=firefox' '--browser=webkit' '--gha' Getting started with writing end-to-end tests with Playwright: Initializing project in '.' Installing Playwright Test (npm install --save-dev @playwright/test)… npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: 'playwright@1.54.1', npm WARN EBADENGINE required: { node: '>=18' }, npm WARN EBADENGINE current: { node: 'v16.19.0', npm: '8.19.3' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: 'playwright-core@1.54.1', npm WARN EBADENGINE required: { node: '>=18' }, npm WARN EBADENGINE current: { node: 'v16.19.0', npm: '8.19.3' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@playwright/test@1.54.1', npm WARN EBADENGINE required: { node: '>=18' }, npm WARN EBADENGINE current: { node: 'v16.19.0', npm: '8.19.3' } npm WARN EBADENGINE } up to date, audited 6 packages in 1s found 0 vulnerabilities √ E:\UItest\playwright.config.ts already exists. Override it? (y/N) · true Writing playwright.config.ts. √ E:\UItest\.github\workflows\playwright.yml already exists. Override it? (y/N) · true Writing .github\workflows\playwright.yml. Writing e2e\example.spec.ts. √ E:\UItest\tests-examples\demo-todo-app.spec.ts already exists. Override it? (y/N) · true Writing tests-examples\demo-todo-app.spec.ts. Writing package.json. Downloading browsers (npx playwright install chromium firefox webkit)… You are running Node.js 16.19.0. Playwright requires Node.js 18 or higher. Please update your version of Node.js. Error: Command failed: npx playwright install chromium firefox webkit at checkExecSyncError (node:child_process:861:11) at execSync (node:child_process:932:15) at executeCommands (C:\Users\lenovo\AppData\Local\npm-cache\_npx\d352e76cc6b4974c\node_modules\create-playwright\lib\index.js:4807:39) at Generator.run (C:\Users\lenovo\AppData\Local\npm-cache\_npx\d352e76cc6b4974c\node_modules\create-playwright\lib\index.js:4891:5) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async C:\Users\lenovo\AppData\Local\npm-cache\_npx\d352e76cc6b4974c\node_modules\create-playwright\lib\index.js:5209:3 { status: 1, signal: null, output: [ null, null, null ], pid: 34656, stdout: null, stderr: null } npm ERR! code 1 npm ERR! path E:\UItest npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c create-playwright . --quiet --browser=chromium --browser=firefox --browser=webkit --gha npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\lenovo\AppData\Local\npm-cache\_logs\2025-07-17T03_16_24_777Z-debug-0.log
07-18
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值