Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error npm install electron-chromedriver #103

Open
lucaskulla opened this issue Mar 22, 2023 · 1 comment
Open

Error npm install electron-chromedriver #103

lucaskulla opened this issue Mar 22, 2023 · 1 comment

Comments

@lucaskulla
Copy link

Issue report

Expected Behavior
install dependencies via npm install

Actual Behavior
after running the command npm install I get the following error message (in logs)

Steps to Reproduce the Problem

  1. clone project
  2. run npm install

Logs
npm ERR! code 1
npm ERR! path /Users/lucaskulla/Desktop/Git/data-curation-tool/node_modules/electron-chromedriver
npm ERR! command failed
npm ERR! command sh /var/folders/nr/pssfh5yx4ylbljccv62qds6h0000gr/T/install-c09de224.sh
npm ERR! node:internal/process/promises:288
npm ERR! triggerUncaughtException(err, true /* fromPromise */);
npm ERR! ^
npm ERR!
npm ERR! GotError [HTTPError]: Response code 404 (Not Found) for https://github.com/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zip
npm ERR! at EventEmitter. (/Users/lucaskulla/Desktop/Git/data-curation-tool/node_modules/got/source/as-stream.js:35:24)
npm ERR! at EventEmitter.emit (node:events:513:28)
npm ERR! at module.exports (/Users/lucaskulla/Desktop/Git/data-curation-tool/node_modules/got/source/get-response.js:22:10)
npm ERR! at ClientRequest.handleResponse (/Users/lucaskulla/Desktop/Git/data-curation-tool/node_modules/got/source/request-as-event-emitter.js:155:5)
npm ERR! at Object.onceWrapper (node:events:628:26)
npm ERR! at ClientRequest.emit (node:events:525:35)
npm ERR! at origin.emit (/Users/lucaskulla/Desktop/Git/data-curation-tool/node_modules/@szmarczak/http-timer/source/index.js:37:11)
npm ERR! at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:674:27)
npm ERR! at HTTPParser.parserOnHeadersComplete (node:_http_common:117:17)
npm ERR! at TLSSocket.socketOnData (node:_http_client:521:22) {
npm ERR! host: 'github.com',
npm ERR! hostname: 'github.com',
npm ERR! method: 'GET',
npm ERR! path: '/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zip',
npm ERR! socketPath: undefined,
npm ERR! protocol: 'https:',
npm ERR! url: 'https://github.com/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zip',
npm ERR! gotOptions: {
npm ERR! path: '/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zip',
npm ERR! protocol: 'https:',
npm ERR! slashes: true,
npm ERR! auth: null,
npm ERR! host: 'github.com',
npm ERR! port: null,
npm ERR! hostname: 'github.com',
npm ERR! hash: null,
npm ERR! search: null,
npm ERR! query: null,
npm ERR! pathname: '/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zip',
npm ERR! href: 'https://github.com/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zip',
npm ERR! retry: {
npm ERR! retries: [Function (anonymous)],
npm ERR! methods: Set(6) { 'GET', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'TRACE' },
npm ERR! statusCodes: Set(7) { 408, 413, 429, 500, 502, 503, 504 },
npm ERR! errorCodes: Set(8) {
npm ERR! 'ETIMEDOUT',
npm ERR! 'ECONNRESET',
npm ERR! 'EADDRINUSE',
npm ERR! 'ECONNREFUSED',
npm ERR! 'EPIPE',
npm ERR! 'ENOTFOUND',
npm ERR! 'ENETUNREACH',
npm ERR! 'EAI_AGAIN'
npm ERR! }
npm ERR! },
npm ERR! headers: {
npm ERR! 'user-agent': 'got/9.6.0 (https://github.com/sindresorhus/got)',
npm ERR! 'accept-encoding': 'gzip, deflate'
npm ERR! },
npm ERR! hooks: {
npm ERR! beforeRequest: [],
npm ERR! beforeRedirect: [],
npm ERR! beforeRetry: [],
npm ERR! afterResponse: [],
npm ERR! beforeError: [],
npm ERR! init: []
npm ERR! },
npm ERR! decompress: true,
npm ERR! throwHttpErrors: true,
npm ERR! followRedirect: true,
npm ERR! stream: true,
npm ERR! form: false,
npm ERR! json: false,
npm ERR! cache: false,
npm ERR! useElectronNet: false,
npm ERR! method: 'GET'
npm ERR! },
npm ERR! statusCode: 404,
npm ERR! statusMessage: 'Not Found',
npm ERR! headers: {
npm ERR! server: 'GitHub.com',
npm ERR! date: 'Wed, 22 Mar 2023 14:17:47 GMT',
npm ERR! 'content-type': 'text/plain; charset=utf-8',
npm ERR! vary: 'X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With',
npm ERR! 'cache-control': 'no-cache',
npm ERR! 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
npm ERR! 'x-frame-options': 'deny',
npm ERR! 'x-content-type-options': 'nosniff',
npm ERR! 'x-xss-protection': '0',
npm ERR! 'referrer-policy': 'no-referrer-when-downgrade',
npm ERR! 'content-security-policy': "default-src 'none'; base-uri 'self'; connect-src 'self'; form-action 'self'; img-src 'self' data:; script-src 'self'; style-src 'unsafe-inline'",
npm ERR! 'content-encoding': 'gzip',
npm ERR! 'content-length': '29',
npm ERR! 'x-github-request-id': 'EB30:0E42:35CD2C9:3753085:641B0E24',
npm ERR! connection: 'close'
npm ERR! },
npm ERR! body: undefined
npm ERR! }
npm ERR!
npm ERR! Node.js v18.7.0

insert short code snippets like this

npm install 

Specifications

  • Version: 1.2.7
  • Platform: MacOs 13.2.1 (22D68) M1 Pro
@stefanches7
Copy link

stefanches7 commented Apr 23, 2024

I have the same issue on a Windows machine (Windows 11). I speculate it is because of behind the proxy download.
electron/chromedriver#42 and https://github.com/electron/get (Section "Proxies") might be relevant, however setting the variable names on Windows did not help.
Worth mentioning that my electron uses another link, https://github.com/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-win32-x64.zip, which otherwise works in the browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants